• Hi everyone,

    I’ve got a theme with social media icons. I want them to be on the regular pages and posts but not on pages like “impressum” or “contact”. Unfortunately, there is no page template without the icons.
    Is there a way to get rid of social media icons on certain pages by adjusting the CSS?
    This is how it looks like at the moment: https://yesindeed.de/impressum/

    Many thanks!

    Anke

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Check the <body> tag on each page to get a page class you can use to hide them.

    for example, for the immpressum page, the body tag is

    <body class="page-template page-template-page-fullwidth page-template-page-fullwidth-php page page-id-2399">

    So, use this CSS:

    .page-id-2399 ul.mvp-post-soc-list {
      display:none;
    }

    To add CSS:

    • If you are using WordPress 4.7 or later, use the “Additional CSS” option in the customizer.
    • If your theme has a custom CSS option, use that to add the CSS shown above.
    • If not, install the plugin Simple Custom CSS.

    Learn to use the Chrome Developer Tools to help you see and test changes to your CSS.

    Thread Starter ando337

    (@ando337)

    Awesome! Thank you so much Steve!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pages without social media icons’ is closed to new replies.