WordPress.org

Ready to get started?Download WordPress

Forums

Lobster
[resolved] Template for full-width (2 posts)

  1. dominic.se
    Member
    Posted 3 months ago #

    hi
    i don't get the is_lobster_full_width() function in functions.php:365.
    i expect it to be the switch if full-width was choosen at page creation. but there is no template in your theme, so it's kind of useless.
    but perhaps i am overlooking something?

    i solved the problem with creating a child theme and added a templ-full-width.php.
    in footer.php (child theme) i removed is_lobster_full_width():13 and replaced it with get_post_meta( get_the_ID(), '_wp_page_template', true ) != "templ-full-width.php". now, the sidebar is not displayed if i chose my newly created templ-full-width.php at page creation.

    last step, i added following style.css:

    body.page-template-templ-full-width-php div#primary {
        width: 100%;
    }

    this broadens the content of #primary if <body> has the template class, which is added by wordpress.

    could you explain what is_lobster_full_width() does?

    greetings,
    dominic

  2. ruphel
    Member
    Theme Author

    Posted 2 months ago #

    dominic

    The is_lobster_full_width() function was going to be used as a theme option that was template based, I see you have found very good use for it. :)

    I may add a full width template in the next release, all the best.

    Ruairi

Reply

You must log in to post.

About this Theme

About this Topic