Remove "Add Listing" link from top-bar

Discussion in 'GeoCraft WordPress Theme' started by mikewmc, Oct 8, 2013.

  1. mikewmc

    mikewmc Guest

    Joined:
    Sep 3, 2013
    Messages:
    19
    Likes Received:
    1
    How do I remove the "Add Listing" link from the top-bar?

    Smiles ~ Mike

    [​IMG]
     
  2. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
  3. mikewmc

    mikewmc Guest

    Joined:
    Sep 3, 2013
    Messages:
    19
    Likes Received:
    1
    @ jsal2 - thanks for the rely.

    I added the following in the custom css box

    .top_strip .associative_link {
    visibility: hidden;
    }

    Unfortunately it removed all the links in the top bar. I only want to remove the "Add Listing" link.
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207


    Hello,

    Could you please share the link of your website, so that we can provide you exact code.
     
  5. mikewmc

    mikewmc Guest

    Joined:
    Sep 3, 2013
    Messages:
    19
    Likes Received:
    1
    NeedLifeCoach.com
     
  6. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to
    library\controls\module_functions.php present in your theme directory and remove the code given below

    Code:
     <li><a href="<?php echo site_url('/?page_id=' . get_option('geo_submit_listing')); ?>"><?php echo ADD_LISTING; ?></a></li>
    Sending image for reference

    2013-10-16_1136.png
     
  7. mikewmc

    mikewmc Guest

    Joined:
    Sep 3, 2013
    Messages:
    19
    Likes Received:
    1
    Hi Gourav,

    Your directions worked perfectly! (of course)

    One small challenge...
    I use a child-theme.
    What steps should I take to insure this modification is not over written by a future theme update!

    Smiles ~ Mike
     
  8. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Child theme only support parent directory files and "module_functions.php" file present in sub directory of the theme.
    The only way to save the modification is to save the "module_functions.php" file and after update replace it with your current "module_functions.php" file.
     

Share This Page