This topic has 11 replies, 2 voices, and was last updated 9 years by DiegoBRRSPF.

  • Author
  • #37277
     DiegoBRRSPF
    Participant

    Hi!
    I’m enjoying work with Kleo more and more!
    At the moment, I need to make a full-width template page with just the two superior menu bars (bottom and nav) and the footer. And, in the middle, I don’t want margins. My objetive is open and external website at the middle, keeping the two superior menus and the footer.
    So, in a nutshell, I need to get rid of the “Title/Breadcrumb Section” and the main area margins.
    The attached image helps to understand 😉
    Thanks in advance!

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

    Theme options – Layout Settings
    – Site layout wide
    – Main layout 1 column
    – Page title location Main section
    – Quick css, add the following

    COPY CODE
    
    .container {
    max-width: 100%;
    }
    

    If you want to hide the title, add this as well

    COPY CODE
    
    h1.page-title {
    display: none;
    }
    

    Theme options – Header Options
    – Show breadcrumb off
    – Main menu info blank

    That should get you close. Report back with anything else.

    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

    #37289
     DiegoBRRSPF
    Participant

    Hi sharmstr!
    Thanks a lot for your incredibly prompt response.
    I understand you are suggesting changing the theme layout proprieties, but I want just one page template with this characteristics, not the entire site.
    My idea was create a template page based on the “full-width.php” and make the changes. But its just my idea, I don’t know if this is the best way.
    How can I apply your tips for just one page?

    Thanks again!

    #37323
     sharmstr
    Moderator

    Kleo (and other themes) loads parts of the page using several different .php files. You’ll have to create new files for the sections that need to be changed so you can call your own custom files and functions. Its more work than I’m willing to do for you, but here’s some things that should help.

    – Start will a copy of /page-templates/full-width.php.

    – Put this is your childs function.php file. It will print out what files the page loads in the page source. From there you can figure out what sections you need to override (example: instead of calling general-before-wrap.php where the container class is set, you can call custom-general-before-wrap.php)

    COPY CODE
    
    /**
     * show included template files
     */
    add_action('all','template_snoop');
    function template_snoop(){
        $args = func_get_args();
        if( !is_admin() and $args[0] ){
            if( $args[0] == 'template_include' ) {
                echo "<!-- Base Template: {$args[1]} -->\n";
            } elseif( strpos($args[0],'get_template_part_') === 0 ) {
                global $last_template_snoop;
                if( $last_template_snoop )
                    echo "\n\n<!-- End Template Part: {$last_template_snoop} -->";
                $tpl = rtrim(join('-',  array_slice($args,1)),'-').'.php';
                echo "\n<!-- Template Part: {$tpl} -->\n\n";
                $last_template_snoop = $tpl;
            }
        }
    }
    
    
    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

    #37324
     sharmstr
    Moderator

    Forgot to mention, if you truly need it for a single page and not a page template, you can use VC to set css for that page only. Just click on the gear icon at the top.

    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.
    #37337
     DiegoBRRSPF
    Participant

    Hi sharmstr!

    Thanks a lot for your tips. I’ll try to make a template page, maybe calling a more experienced developer to help.

    But, in fact, this option of having just one page fits my needs. What are the CSS instructions I have to set?

    I promise it will be my last message about this subject 🙂

    Thanks again!

    #37340
     sharmstr
    Moderator

    I already gave them to you. See my first response.

    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

    #37343
     DiegoBRRSPF
    Participant

    Hi sharmstr!

    Sorry, I forgot to write. I tried to use your instructions of the first response, and with one or two more changes in the CSS and style settings (using VC) I get almost the result I wanted. The only thing I couldn’t get is to hide the breadcrumb section. With your instruction I successfully hide the page title, but the breadcrumb bar is still on.

    Anything I did wrong?

    #37346
     sharmstr
    Moderator

    You can set all of that at the bottom of the page in the settings.

    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

    #37348
     DiegoBRRSPF
    Participant

    I’m sorry, I’m really embarrassed… What a stupid question…

    I change the settings and it’s all fine now.

    Thanks a lot for your help and patience.

    My best wishes.

    #37349
     sharmstr
    Moderator

    No problem 🙂

    There’s a lot of settings… everywhere. I’ve got almost a year working with Kleo on you 🙂

    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

    #37354
     DiegoBRRSPF
    Participant

    😀 hahahahaha

    That’s right.

    Thanks again. I’ll probably bother you really soon. 😀 hahahahah

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

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

Log in with your credentials

Forgot your details?