Sidebar not showing on CPT

Hello, i have a custom post template, but my sidebar is not showing. I have this code in the template about the sidebar

  <?php if ( $fullwidth != 'on' ) : ?>
    <?php get_sidebar(); ?>
  <?php endif; ?>

</div>

I’m i missing something?

Thanks

Hi There @RPronk

Thanks for writing in! Could you please try following this thread and see if that helps (https://theme.co/apex/forum/t/different-sidebar-for-different-post-types/11446/3).

Thanks!

Yes that helped me thanks! I just one little help, i need to offset the sidebar since i have PRO and the header is a bit larger.

For post we allready created this: .

archive .x-container.offset,
.single-post .x-container.offset {
margin-top: calc(150px + 40px);
}

Can i do something similar for the sidebar?

Thanks

i tried this code but does not function

x-sidebar right {
margin-top: 90px;
}

example page: https://jittysamsterdam.com/haar-kennisbank/kleuren/

Hi there,

It should be:

.x-sidebar.right {

}

Hope this helps.

hello, i have tried that also but it does not work…

Thank you

Hi @RPronk,

Please update your custom CSS to this:

.x-sidebar {
    margin-top: 200px;
}

Hope it helps :slight_smile:

Oh sorry for that, yes you are right. Works,
Thanks!!!

You are most welcome. :slight_smile:

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