Hide featured image on blog post

Hey Guys,

I was hoping that you could help me with the following:
I would like to remove the featured image on all my blog posts, because I can’t seem to size them to my likings.

Besides this I would like to add something like this to the top of each blogpost:

I have my own workout plan that I would like to promote like Avocadu does with their program.

CHeers,

Bas

Hello Bas,

Thanks for writing in!

To hide the featured image in your single posts, please add the following CSS code in the X > Theme Options > Global CSS (http://prntscr.com/evui3r)

.single-post .entry-featured {
    display: none;
}

We would love to know if this has worked for you. Thank you.

Yes that worked! Thanks for that. Any idea how avocadu did that with the thing above every post?

Hello Bas,

They are using a different theme so we are not certain how they are able to achieve it.

But as for X/Pro, you can achieve it by doing a bit of customization.

First is to create a Global Block with the header contents.

Once the global block is created, you will get a corresponding shortcode for the global block.

Next. make sure that you have the child theme installed and activated. Then login through FTP and go to wp-content/x-child then edit the functions.php file and add this code:

function single_post_header() {
  if ( is_single() ) {
     echo do_shortcode('[cs_gb id=41]');
  }
}

add_action('x_after_masthead_end', 'single_post_header');

Please change [cs_gb id=41] to the actual shortcode of the global block you have created.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.