• Resolved vanjacou

    (@vanjacou)


    Theme: Themify Base (with child)

    I duplicated a theme page template called “Full Width Page”
    I changed only the filename (including the ‘filename’ reference at the top of the code).

    When I apply the template to a page, it loads but it changes one attribute in the body class:

    “sidebar-none” changes to “sidebar1”

    Can someone please tell me what I need to change to have the template produce the exact same result as the original?

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter vanjacou

    (@vanjacou)

    In case anyone else needs this answer:

    There was a function in themify-utils.php setting the layout to ‘sidebar-none’ IF the page template was ‘full-width’.
    All else defaulted to ‘sidebar1’.

    I duplicated that function for my ‘custom-full-width’ template to also set the layout to ‘sidebar-none’.

    This duplicate code I placed in functions.php and it works great.

Viewing 1 replies (of 1 total)

The topic ‘Duplicate page template changes body class –Why/how/where?’ is closed to new replies.