bobbyscon
Forum Replies Created
-
Forum: Reviews
In reply to: [Zerif Lite] Zerif lite has malicious content !!So why would you give it a 5-star review?
We would definitely want this ability as well.
OK, I got it!
I had been trying to edit
kbe_knowledgebase.phpthinking it was the template for the parent page. What I actually needed to work on wasarchive-kbe_knowledgebase.php. I’ll have to make the same changes to the other php files, but at least I know what I need to change now.FYI, there’s an awesome plugin called What The File that indicates which php file is powering a site, which is how I made the discovery above.
If anyone else is using the Zerif-Lite theme, I changed the
archive-kbe_knowledgebase.phpfile from this:<?php get_header(); // Classes For main content div if(KBE_SIDEBAR_HOME == 0) { $kbe_content_class = 'class="kbe_content_full"'; } elseif(KBE_SIDEBAR_HOME == 1) { $kbe_content_class = 'class="kbe_content_right"'; } elseif(KBE_SIDEBAR_HOME == 2) { $kbe_content_class = 'class="kbe_content_left"'; } // Classes For sidebar div if(KBE_SIDEBAR_HOME == 0) { $kbe_sidebar_class = 'kbe_aside_none'; } elseif(KBE_SIDEBAR_HOME == 1) { $kbe_sidebar_class = 'kbe_aside_left'; } elseif(KBE_SIDEBAR_HOME == 2) { $kbe_sidebar_class = 'kbe_aside_right'; } ?> <div id="kbe_container"> <!--Breadcrum--> <?php if(KBE_BREADCRUMBS_SETTING == 1){To this:
<?php get_header(); // Classes For main content div if(KBE_SIDEBAR_HOME == 0) { $kbe_content_class = 'class="kbe_content_full"'; } elseif(KBE_SIDEBAR_HOME == 1) { $kbe_content_class = 'class="kbe_content_right"'; } elseif(KBE_SIDEBAR_HOME == 2) { $kbe_content_class = 'class="kbe_content_left"'; } // Classes For sidebar div if(KBE_SIDEBAR_HOME == 0) { $kbe_sidebar_class = 'kbe_aside_none'; } elseif(KBE_SIDEBAR_HOME == 1) { $kbe_sidebar_class = 'kbe_aside_left'; } elseif(KBE_SIDEBAR_HOME == 2) { $kbe_sidebar_class = 'kbe_aside_right'; } ?> <div class="clear"></div> <!-- added this --> </header> <!-- / END HOME SECTION --> <!-- added this --> <div id="content" class="site-content"> <!-- added this DOES NOT HAVE A CLOSE div TAG! --> <div class="container"> <!-- added this --> <div class="content-left-wrap col-md-12"> <!-- added this --> <div id="primary" class="content-area"> <!-- added this --> <div id="kbe_container"> <!--Breadcrum--> <?php if(KBE_BREADCRUMBS_SETTING == 1){ ... ... ... </div> <!-- added this --> </div> <!-- added this --> </div> <!-- added this -->I have also started using a child theme, so I had to place the modified php template file into the child theme folder rather than modifying the file created in the parent theme’s folder.
I am still noticing that the footer “jumps” when the page initially loads. If someone knows how to resolve that, I’d love to know!
Thanks for responding, Maeve!
I’ve opened the site back up. Sorry about that, I was testing some login options. I totally understand the limits that can be provided for free via this support page, so I’m grateful for any guidance you’re able to provide. I have coding skills, but my experience in php and CSS is minimal, so it’s taking me a while to navigate the files. Hiring someone isn’t an option (no budget and the site is just a temporary proof of concept), so I’ll be working on it myself. Plus it’s a good way for me to learn!
When you say “adjust the KBE page template”, which php file are you referring to? I can see, using developer tools, that there’s a mismatch on the page with the knowledge base compared to the other pages as far as which elements are contained within which <div> tags, and it appears that on the offending page the content and footer is all ending up in the <header> rather than a <div id=”content”> section.
Thanks for the help!
So the page with the Knowledgebase plugin in it has all of the content placed in the header div rather than a content div. I have tried messing around with kbe_knowledgebase.php and closed the header tag and added a content div, but nothing I did seemed to have any effect.
Using Chrome developer tools, I manually edited the header under the Elements tab to close after the END TOP BAR comment, and that resolved the knowledgebase section being cut off at the top, but didn’t resolve the footer issue. This change is only there during the session, though, and I don’t know where to make this change in the actual code so that it sticks.
I have deactivated and reactivated the plugin, as well as made sure I have the latest version.
OK, so what I’ve found so far is that the KBE template appears to be overriding come of my theme’s css. If I add
min-height: 667px;to the kbe_style.css file, it starts to look a little better (footer is more towards the bottom, but the top of the KB stuff is still cut off), but it’s static and not dynamic. The container class of the theme uses amin-height: auto;setting, but I tried that in kbe_style.css under the#kbe_containerclass and there was no effect. Should I be putting it somewhere else?