Safari is not playing nice

Discussion in 'PHP' started by goneinsane, Aug 8, 2013.

  1. #1
    I am using Wordpress. In my sidebar is 3 little tabs. When I click on one of the tabs, the sidebar changes to the information within that tab and adds #priceblock2 to the end of the URL.
    This works great in all browsers.

    I created a link in the main part of the page that I was hoping would open one of the tabs in the sidebar. The link points to www.mydomain.com/#priceblock2. This works great with all other browsers except Safari. Safari just won't do it. Does anyone know how I can trigger the action that happens in the sidebar from the main part of the page?

    My sidebar code:
    <ul class="tabnavig">
              <?php if ( $gmap_active ) { ?>
                  <li><a href="#priceblock1"><span class="big"><?php _e('Map', 'appthemes') ?></span></a></li>
              <?php } ?>
              <li><a href="#priceblock2"><span class="big"><?php _e('Contact', 'appthemes') ?></span></a></li>
              <li><a href="#priceblock3"><span class="big"><?php _e('Poster', 'appthemes') ?></span></a></li>
            </ul>
    Code (markup):
    <!-- tab 2 -->
            <div id="priceblock2">
    
                <div class="clr"></div>
    
                    <div class="singletab">
    
                  <?php if ( get_option('cp_ad_inquiry_form') == 'yes' && is_user_logged_in() ) {
    
                            include_once ( TEMPLATEPATH . '/includes/sidebar-contact.php' );
    
                        } elseif ( get_option('cp_ad_inquiry_form') <> 'yes' ){
    
                            include_once ( TEMPLATEPATH . '/includes/sidebar-contact.php' );
    
                        } else {
                        ?>
                            <div class="pad25"></div>
                            <p class="contact_msg center"><strong><?php _e('You must be logged in to inquire about this ad.', 'appthemes') ?></strong></p>
                            <div class="pad100"></div>
                  <?php } ?>
    
                    </div><!-- /singletab -->
    
            </div><!-- /priceblock2 -->
    Code (markup):
    My main area of the page:
    <div class='phone'>Send an <a href="<?php the_permalink(); ?>/#priceblock2" title="Email">Email</a>
    Code (markup):
     
    goneinsane, Aug 8, 2013 IP
  2. goneinsane

    goneinsane Well-Known Member

    Messages:
    303
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #2
    If anyone is willing to help me, I can pay you via paypal. Please send me a quote.
     
    goneinsane, Aug 8, 2013 IP