Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1438344

    Hi,
    i like to show on some pages a footer that is different to other pages. How is this possible or which is the best approach. For instance different footer where the category changes or with the help of the URL-path.
    Thank you

    #1438373

    Hey gpweb,

    You can hide the footer on individual pages in the Layout menu in the right hand sidebar. You could create a custom footer using a Color Section element for example, and you can save that element as a template, or load the content using the Page Content element for example. There’s no dynamic functionality in the theme which would load different content depending on the URL unfortunately, you might be able to find a plugins which does that for you though.

    Best regards,
    Rikard

    #1438692

    Hi Rikard
    i know how to check the URL to change something dynamically, but unfortunately i dont know the hook/filter to show not the footer widgets or the whole footer (something like avia_get_option(‘footer_columns’);). Can you give me a hint
    Thank you

    #1438707

    Hi,

    Thanks for the update. I’m not sure I understand your intentions, but you can hide the footer in the Layout menu for each page.

    Best regards,
    Rikard

    #1438749

    Hi Rikard,
    thanks i know the backend. As i said
    Change the footer depending on the URL dynamically. Therefore I need a hook/filter similiar to the the OPtion in the backend to hide the footer.
    Best regards

    #1438809

    Hi,
    Try the solution in this thread.

    Best regards,
    Mike

    #1438844

    Hi Mike,
    not really my solution. But when i can add lets say the Footer Column 1 – Widget with
    dynamic_sidebar( 'Footer - Column 1' );
    how can i remove ‘Footer – Column 2’ . I tried
    dynamic_sidebar( 'Footer - Column 2' ) = false;
    but thats not working.
    Best regards

    #1438854

    Hi,
    If you just want to show different widgets in the footer for different pages, I recommend using the plugin Widget Options, it offers a easy way to choose which widgets show on each page.

    Best regards,
    Mike

    #1438926

    Thanks Mike for the Plugin recommandation,
    does that mean there is no programmatic way/hook to remove dynamically widget like ‘Footer – Column 2’ like
    dynamic_sidebar( 'Footer - Column 2' ) = false; (which is not working
    Best regards

    #1438939

    Hi,
    Perhaps there is a way around this, but I don’t know how you are using dynamic_sidebar( 'Footer - Column 1' ); to display a specific widget on a specific page, but it seems like re-inventing the wheel when there is a plugin that will add this option to your widgets already.
    I would imagine that you would use an IF statement to check the page ID and your “else” would be empty or a different widget for when the IF statement was not true, so in this case you don’t need to “remove” the widget, it just would not show in the first place, that is the approach that makes the most sense.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.