Centering one product on a single page [closed]

To center with CSS you have to stop it from floating left then put auto on the margin-left and margin-right. ul.products li.product, .woocommerce-page ul.products li.product { float: none; margin-left: auto; margin-right: auto; } Can you add another class when there is only 1 item? If you can’t there is a way in CSS to target … Read more

Address automatically generated ids in css [closed]

Use a plugin to add custom css classes. This plugin does just that and a little more: https://wordpress.org/plugins/widget-css-classes/ For example, add the class .recent-posts to the recent posts widgets. Then you should be able to style them just like any other css class.

Custom css author role

If a user is not logged in then admin_head probably won’t run. So let’s just check their capabilities. function my_custom_admin_head() { if ( ! current_user_can( ‘have-fun’ )) : ?><style> #welcome-panel{display: none !important;} #wp-content-editor-tools{display: none !important;} </style> <?php endif; // cant’ have-fun } add_action( ‘admin_head’, ‘my_custom_admin_head’ );

Twentyfifteen style author comment

These are CSS classes for styling… comment-author-admin bypostauthor For (your) example: .commentlist .byuser {background-color: black;} .commentlist li ul.children li.byuser {border-top: 10px solid #e18728;}

Remove Archive | from Categories

In case you are referring to the title shown in the browser title bar: this could be achieved by coding, but the easiest way would probably be to use an option provided by the SEO plugin Yoast (in case you have that installed). In your admin go to “SEO > Titles & Metas > Post … Read more

add div after image in post [closed]

Your question is a little light on detail of what you want to happen precisely. In general anything in WordPress content is usually treated as such. It’s not very friendly to being mixed with code, although many solutions try (often with poor results). The basic approach would be to use the_content filter to process post … Read more