This topic has 5 replies, 3 voices, and was last updated 8 years by Laura.

  • Author
  • #134272
     gurudates
    Participant

    Hello!

    I have tried everything! My website is almost done but I want to remove the main menu from the (HOMEPAGE ONLY) so that users register with me before access my sites content. The theme i am using is SweetDate. I have installed the child template so that i can add updates to my css. but every piece of code i have tried has not worked so far im not sure if there are custom codes based upon different themes or if there is an easier way to do this. I am also working in wordpress. Please if anyone can help me solve this issue!

    #134376
     Laura
    Moderator

    Hello 🙂 here it is, just add it to style.css of child theme

    COPY CODE
    
    .home-page ul#menu-guru-dates {
        display: none !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #134430
     gurudates
    Participant

    Hello! Thank you! Okay i pasted the code into my childtheme style.css all was working fine but now i just went to login into my wordpress admin to edit other areas of the my site and it comes up with this message: Warning: Cannot modify header information – headers already sent by (output started at /home/content/n3pnexwpnas01_data03/15/3540815/html/wp-content/themes/sweetdate-child/functions.php:17) in /home/content/n3pnexwpnas01_data03/15/3540815/html/wp-includes/pluggable.php on line 1174

    I have attached a image of this also so you can see. Im not sure how i can resolve this issue?

    Attachments:
    You must be logged in to view attached files.
    #134660
     Laura
    Moderator

    Hello, did you add anything to functions.php file?
    The code i sent was for style.css not functions.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #145667
     j_jankowsky
    Participant

    Hello, I am also trying to remove the menu from Home page only. However, when I add the suggested code to the style.css file of my Sweetdate child theme, and update it, it states that the update was successful but it does not make any changes to the site’s homepage. The site also has Sweetdate child theme activated. Any ideas why this happens?

    #145885
     Laura
    Moderator

    Hello, its because your menu name is different, can you share a link?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?