Hot answers tagged

1

As discussed in comments, the problem was that the site address was set to localhost:8888/myBlog. This is the URL WordPress is expecting your clients to be using, and uses this to generate fully-qualified URLs for scripts and CSS etc. Hence your other clients were trying to load scripts and CSS from their own localhost. The fix is to set the correct URL, ...


1

This should do it: .page-id-17091 div.fixed-header-box { display: none; } I'd generally prefer setting the theme up to not generate the header for that page, though, rather than hiding it after the fact.


1

You can make sure that your CSS is enqueued after your theme's CSS and also make sure that your CSS is using rules that are more specific. This will help in making your CSS override the theme's CSS. Worse-case scenario you could add !important to a few CSS rules if you are having a hard time overriding your theme. When you use wp_enqueue_style you should ...


1

Because the WordPress hook add_theme_support( 'editor-styles' ); adds the css in the style-editor.css and appends the class .editor-styles-wrapper before my .wp-block, the usage of the body classes for page vs. post styles fails. Instead I use the answer from here, from David Walsh, to add the styles independently to the wp admin area: // Update CSS within ...


1

Contrary to the methods presented so far, I believe it is better to use the version number which appears at the top of your style.css file: // style.css /** Theme Name: My theme ... Version: 1.2.3 ... **/ To use the theme's version in your css, add the following to your functions.php (or equivalent) script: <?php wp_enqueue_style( 'my-theme', ...


1

When adding custom columns, you can also directly insert a small style snippet which you can use to size the column. A bit dirty, but saves another filter / call: /** * Add custom columns to submission list * * @param $columns * * @return mixed */ function submission_add_columns( $columns ) { $columns['name'] = 'Name'; $columns['iban'] = ...


Only top voted, non community-wiki answers of a minimum length are eligible