I made a copy of my site on our dev server to test out the Enfold theme. After activating the theme, when I view the site all the page/post content is missing. What should be a page instead only shows the sidebar menu. Investigating with Firebug shows that the “main” content section somehow has an element style of “display:none”. Disabling that style makes the page display just fine. So I know what the problem is but I can’t find what’s causing it. It’s not coming from any css (it’s an element style with no css source listed) or customizations (I haven’t added any). Also, I searched for any javascript in the Enfold directory that applies a “display:none” and temporarily disabled each instance individually and there was no change.
Here’s the section causing the problem:
<main class="template-page content nine units" itemprop="mainContentOfPage" role="main" style="display: none;">
Removing that “display:none” at the end fixes it. It feels like there’s simply some option I haven’t checked or enabled that’s causing this but I can’t find what it is at the moment.
Hey LaughingDragon!
Can you post the link to your website so we can inspect elements?
Regards,
Yigit
Well, thanks for the reply, but don’t worry about it because I found the problem. After a good nights sleep, I started off today with some solid troubleshooting and found the issue. It was an enqueue_scripts action I imported into the child theme functions.php. It was for some legacy scripting from the old page for a function which I’ll be able to implement much better via your theme- so I’m better off without it anyway. Once that bit was deleted from functions.php, pages loaded fine.