Custom Post Type - Page Layout

I have my custom post type and I have my setup working just fine.
I have single-cpt.php and wp-single-cpt.php placed in the correct places.

I need to remove the featured image thats taking up the ENTIRE top of the page! I do not need any css to hide it, I do not want it in the DOM.

OR

Ultimately, for this cpt I would like to just have a simple fullwidth page, it would be nice if the theme already had it set to use the simplest page when people create cpt’s.

As of right now, the only solution I can see is to edit this line:
<?php x_get_view( 'integrity', 'content', get_post_format() ); ?>

Create a copy of content.php and rename it like my-new-single-cpt-content.php
<?php x_get_view( 'integrity', 'my-new-single-cpt-content', get_post_format() ); ?>

Hi There,

For CPT, please check portfolio templates as sample:
wp-content\themes\pro\single-x-portfolio.php
If you want it to be fullwidth, from that single-x-portfolio.php on line 13, remove max and width classes. This will make the container fullwidth:

<div class="x-container max width offset">

Then inside that file it is looking for this: content-portfolio.php from here:
\wp-content\themes\pro\framework\views\{stack}\content-portfolio.php
To remove featured image look for the following:

  <div class="entry-featured">
    <?php x_portfolio_item_featured_content(); ?>
  </div>

Remove that part. That’s just a sample. On your case, just look for the a div with entry-featured class, then remove it.

Hope this helps.

The file single-x-portfolio.php only has one single line :thinking:

But I understand what you meant… and looked at wp-single-x-portfolio.php. And I got mine fixed following what you said.
Thanks!! I know you all don’t have time for customizations… ty again.

Glad to hear it!

Cheers!

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