Site logo

Archived topic

Decrease the spacing between the headline and image.

25 replies · Started by Mouse on February 24, 2021

Viewing posts 16–26 of 26

Glad to hear that

This code works brilliantly. However, can you center align the image with this php snippet? I'm not sure how to do it. Thanks

Hi there,

can you raise a new topic and share a link to your site where i can see the issue?

Any idea how to do this only for a certain category?

Hi Marius,

Can you open a new topic and describe what exactly you are trying to achieve?

And link us to your site and the certain category.

Thanks!

David provided a solution here but that applies all over the site. My question was how can that solution be applied to a specific category.

Hi there,

in that code you will see this conditional statement:

if ( is_single() && ! is_admin() ) {

Change that to:

if ( is_single() && in_category('slug') && ! is_admin() ) {

Just replace slug with the appropriate category term slug.

Awesome, worked like a charm. Thank you.

Glad to hear it!

I'm still not sure where to add the shortcode? The plugin is active, the PHP code created, the shortcode is available, but where do I put it?
Sorry if I'm missing something!
Thanks

Hi Roger,

What shortcode is it?

Can you open a new topic and let us know what are you trying to achieve?

And link us to your site.

Thanks!

This archived topic is closed to new replies.