Add title for knowledge base section on homepage
This support request was posted in Flatbase by gerardbloom
- gerardbloom December 3, 2014 at 3:48 am
Is there a way for me to add a title like “Help Articles”
At the top of the Knowledge base section on the homepage?
I can’t seem to find where to add that in within the home-page template.php
Juanfra Aldasoro December 3, 2014 at 2:20 pmHi Gerard,
Thanks for writing. Well, you can use the parameters for the nice_knowledgebase function, or add them with a filter.
For example, if you use this code in your functions.php file, it should work: https://gist.github.com/juanfraa/58e8b6fa367c5d6a986f
Best,
Juan.gerardbloom December 3, 2014 at 5:50 pmI added that code and it made my homepage knowledge base section look like this.
https://dl.dropboxusercontent.com/u/39930/images/knowledgebase-category-title-page.pngI want it to look more like this.
https://dl.dropboxusercontent.com/u/39930/images/knowledgebase-title-section-mock.pngJuanfra Aldasoro December 3, 2014 at 6:18 pmHi Gerard,
Ok, I misunderstood your request.
In order to have that you can simply add a title on the file template-home.php, on the parameters for the function nicethemes_knowledgebase.
In the line #32, you can add it just after
Something like
Your title
Best,
Juan.gerardbloom December 3, 2014 at 6:49 pmYup. I did added that code to line 32 to template-home.php
See screenshot
https://dl.dropboxusercontent.com/u/39930/images/homepage-template-php.pngAnd it ended up breaking the homepage.
Juanfra Aldasoro December 3, 2014 at 6:56 pmHello Gerard,
You are doing it wrong. Please check and try this: https://gist.github.com/juanfraa/c20a96b1ecadc0930837
Best,
Juan.gerardbloom December 3, 2014 at 7:30 pmGreat. My PHP and CSS is getting better with you. 🙂
Thanks so much for your help and patience!
You must be logged in to reply to this topic.