Results 1 to 2 of 2

Thread: How to Hide 'Post Ad Button'

  1. #1
    Thread Starter
    compunetitcc's Avatar
    Join Date
    Nov 2012
    Location
    South Africa
    Posts
    162
    Thanks
    35
    Thanked 4 Times in 3 Posts

    How to Hide 'Post Ad Button'

    Hi, this code will help you hide the 'Post ad Button' on either logged in users or users that not logged (Just change the IF Statement) in forcing them to register.

    PHP Code:
            <div class="header_menu_res">

                <?php wp_nav_menu( array( 'theme_location' => 'primary''menu_id' => 'menu-header''fallback_cb' => false'container' => false ) ); ?>
              

          
          <?php if ( is_user_logged_in()) 
                 { 
    ?>
                                 <a href="<?php echo CP_ADD_NEW_URL?>" class="obtn btn_orange"><?php _e'Post FREE Profile'APP_TD ); ?></a>
          <?php } else { ?>

          <?php ?>

                

                <div class="clr"></div>

  2. #2
    Expired Customer nabeel's Avatar
    Join Date
    Aug 2016
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: May 8th, 2015, 02:44 PM
  2. Replies: 16
    Last Post: January 21st, 2014, 01:43 AM
  3. Hide Apply Online button from expired job listings
    By dolphinbay in forum Help Using JobRoller
    Replies: 1
    Last Post: December 20th, 2013, 11:41 AM
  4. How can I hide the contact event organizer button?
    By moratzdesigns in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: May 25th, 2013, 09:51 AM