This topic has 6 replies, 3 voices, and was last updated 9 years by swingkleo.

  • Author
  • #66161
     cg82
    Participant

    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

    #66162
     cg82
    Participant

    Had a screenshot upload issue, uploading again here.

    Attachments:
    You must be logged in to view attached files.
    #66196
     sharmstr
    Moderator

    Whatver 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 CODE
    
    add_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 solution

    This 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.
    #66201
     cg82
    Participant

    Thanks for the clue @sharmstr
    I will try out that in forums test machine.

    #66203
     sharmstr
    Moderator

    Cool. 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #66965
     swingkleo
    Participant

    Yeah, I’d like to see this fixed too. Came in from a google search. Was hoping to find a solution put together 🙂 Not too much of a coder here.

    #66966
     swingkleo
    Participant

    And also, very pleased with the theme overall. This is the one big thing I’ve been trying to figure out how to have fixed. It looks great on desktop and tablet. Small screens don’t like that part though.

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?