Skip Navigation

[Resolved] layouts sidebar is displaying above enfold theme sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue that here is that the user was using the Enfold theme but created a custom layout for his CPT. He added a custom Sidebar using Layouts but when previewing on the frontend the default theme's sidebar is overlaid her as well.

Solution:

The solution to this would be to disable the sidebar by going to your enfold theme options.

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by simranjeetS-2 6 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#629058
Screenshot 2018-03-28 14.39.41.png

I am trying to:
display layouts sidebar on custom post type. but theme sidebar is also visible. layouts sidebar is above theme sidebar. I want to remove theme sidebar from one post type only. If I remove this sidebar from theme options, my sidebars are removed from entire posts inbuilt post type. I am using enfold child theme and I have copied single.php and made it single-lawyer.php. I want everything to be done by toolset - not by enfold.

Link to a page where the issue can be seen:
hidden link
I expected to see: single sidebar

Instead, I got: 2 overriding sidebars

#629299

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Simran,

I'm currently having a look here.

#629384

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Simnran,

The issue was that your theme was loading the sidebars from the theme option settings here hidden link

Thanks,
Shane

#629461

Hi Shane

The problem is that your solution removes sidebar from blog posts also. See this above - https://toolset.com/forums/topic/layouts-sidebar-is-displaying-above-enfold-theme-sidebar/#post-629058

I know how to remove sidebar from theme-options. But I want to remove sidebar without using theme options so that sidebar remains with blog posts which is inbuilt WP post type. I have opened a thread with theme developer also. See this - hidden link

While they might suggest some theme related solution, can you suggest a toolset solution?

#629603

I have done a temporary fix - unless you suggest that it is the best option with toolset. I copied sidebar.php and made another sidebar. Then i changed code in single-lawyer.php to get that sidebar

#629722

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Simran,

The single-lawyer.php file was created by you correct?

If so and you've removed the sidebar code, then this was what I was about to suggest as its the only way I can think of to remove the sidebar without affecting the other posts.

Thanks,
Shane

#629781

Thanks. Please close ticket.