Display Footer in Portfolio

Mauer Themes Support Stills Display Footer in Portfolio

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  Paul 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2399

    elimov
    Participant

    Hello Paul,

    I have one question regarding the footer in the Portfolio page. How I can display the footer at this page?

    Best regards
    Artur

    #2432

    elimov
    Participant

    ???

    #2500

    Paul
    Keymaster

    Hello Artur,

    To add the same footer as the one in the blog page (grey area with the widgets) to the Portfolio page (as well as Portfolio categories pages) please do the following:

    In your Admin Panel go to ‘Appearance’ -> ‘Editor’, find the footer.php file in the list on the right.

    Replace this line <?php if (get_post_type() == 'post' || is_search()) {get_template_part("content", "widgetized_area");} ?>

    With this: <?php if (get_post_type() == 'post' || is_search() || is_page_template('page-portfolio.php') || is_tax('project_cat') ) {get_template_part("content", "widgetized_area");} ?>

    The result should look like this — see screenshot.

    Click ‘Update File’.

    Regards,
    Paul

    ——
    A little disclaimer: It’s best to do such customizations in a child theme or a custom plugin, so they do not get overwritten during theme updates. However, of course, you can always re-introduce them after a theme update.

    #2584

    elimov
    Participant

    Thanks Paul,

    one last question. How I can get the footer on all sites?

    Best regards
    Artur

    #2605

    Paul
    Keymaster

    Hello Artur,

    To display the footer on all pages of the website (I guess that’s what you meant by ‘all sites’), please replace the above mentioned line with the following:

    <?php get_template_part("content", "widgetized_area"); ?>

    So that the end result looks like this:

    Regards,
    Paul

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

You must be logged in to reply to this topic.