hide sub footer left and right widgets on a few pages?

Community Forums Forums Design Tips and Tricks hide sub footer left and right widgets on a few pages?

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  braddalton 6 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #84805

    lindebjerg
    Participant
    Post count: 42

    I would like to hide sub footer left and right widgets on some pages.
    Page IDs where to hide the widgets: 822, 43, 1044

    http://granum.weborbis.de/
    #84825

    braddalton
    Participant
    Post count: 8871

    Add a conditional tag after the function in the PHP code.

    https://gist.github.com/braddalton/c589bc2b43ffc2184421


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #84933

    lindebjerg
    Participant
    Post count: 42

    I have tried to inset your code into the function.php, but it did not change anything?

    • This reply was modified 6 months, 2 weeks ago by  lindebjerg.
    • This reply was modified 6 months, 2 weeks ago by  lindebjerg.
    #85062

    braddalton
    Participant
    Post count: 8871

    Hello @lindebjerg

    Just tested the code locally on the Outreach Pro theme. Please try again.

    Copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #85116

    lindebjerg
    Participant
    Post count: 42

    if I do so, the site turns all blank ;(

    #85440

    braddalton
    Participant
    Post count: 8871

    I tested the code which works perfectly.

    Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.