-
Author
-
July 2, 2015 at 08:58 #66161cg82Participant
On a mobile device 5 inch the forums don’t look as user friendly as they should considering the overall quality of kleo.
Refer the screenshot.
Secondly, I have been searching forums page under pages but I can’t find it anywhere. How do I embed additional content on the top, left and bottom of regular bbpress forums?
Regards, cg82
July 2, 2015 at 09:01 #66162cg82ParticipantHad a screenshot upload issue, uploading again here.
Attachments:
You must be logged in to view attached files.July 2, 2015 at 15:11 #66196sharmstrModeratorWhatver you have set in Settings > Forums > Forums root is merely a placeholder for bbpress. You dont even have to have the page created. But if you do, you’ll break the bbpress magic if you try to add any content to the page. Same thing happens with woo and bp and even wp on some things. For those types of pages, you need to edit the template files or inject code into them.
The best way to do that, is to use add_action functions to inject the code you want. https://codex.wordpress.org/Function_Reference/add_action
In the forums page, there are a few do_action spots you can utilize. For example, at the top of every page on the site there is a kleo_before_main_content action that you can use to add content before the main section. So if you just want to do it for bbpress pages, you can do something like in your childs functions.php file
COPY CODEadd_action('kleo_before_main_content','my_custom_forums_header'); function my_custom_forums_header() { if ( is_bbpress() ) { echo "This is my forum"; } }
For the bottom you’d use kleo_after_content.
As for the mobile layout, I agree and I’ll talk to the devs about laying it out better.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.July 2, 2015 at 15:26 #66201cg82ParticipantThanks for the clue @sharmstr
I will try out that in forums test machine.July 2, 2015 at 15:35 #66203sharmstrModeratorCool. Not sure you know much about this, but I showed a basic example by echoing out “This is my forum”, but you can also add shorcodes for things like images and revolution sliders. swap out echo “xxx” with do_shortcode(‘[yourshortcode]’)
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.