Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fuzzy486

    (@fuzzy486)

    Thank you!

    Adding that code did not work. Based on that idea, directly in the mystique_logo(); function, I replaced <a href="'.$siteurl.'"> with <a href="NEW URL"> and that worked.

    Thread Starter fuzzy486

    (@fuzzy486)

    Thanks, here is the function.

    function mystique_logo(){
      $options = get_option('mystique');
      $size = $options['logo_size'];
      if($size) $size = 'width="'.substr($size, 0, strpos($size, "x")).'" height="'.substr($size, strpos($size, 'x')+1).'"';
    
      $sitename = get_bloginfo('name');
      $siteurl = get_bloginfo('url');
    
      $tag = (is_home() || is_front_page()) ? 'h1' : 'div';
    
      $output = '<'.$tag.' id="logo">';
    
      if($options['logo']) // logo image?
        $output .= '<a href="'.$siteurl.'"><img src="'.$options['logo'].'" title="'.$sitename.'" '.$size.' alt="'.$sitename.'" /></a>';
      else
        $output .= '<a href="'.$siteurl.'">'.$sitename.'</a>';
      $output .= '</'.$tag.'>';
      echo apply_filters('mystique_logo', $output);
    }
Viewing 2 replies - 1 through 2 (of 2 total)