Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Full width template for custom post type

Home / Forums / Ascend Theme / Full width template for custom post type

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
June 18, 2019 at 10:17 am

Good afternoon
I am using Ascend Premium on a site with multiple custom post types. The main blog setting is to use a right hand sidebar, but for this post type, I wish to use a full width template. I have created a child theme and taken a copy of single.php renamed as single-wpdmpro.php (tp match the cpt slug) and removed the
if ( ascend_display_sidebar() ) section.

The page is using the new single-wpdmpro.php template and no sidebar is showing, but the content column width is still the same as it was before. I am not sure exactly what is controlling the width, but I suspect that I need to replace the main content div statement
<div class="main <?php echo esc_attr( ascend_main_class() ); ?>" id="ktmain" role="main">

Can you please advise what classes I should use to make the content full width?

I am currently working on a local machine, so cannot post a url.

Thanks

Mandy

  • The forum ‘Ascend Theme’ is closed to new topics and replies.