New Landing How can we help? Themeforest Theme Support Dante Display shortcode next to logo

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Dante
  • #79256
    msc-val
    Member
    Post count: 71

    I’m trying to add a short code next to the logo. I’ve been successful in displaying it on the site but it is above the logo. Here’s the code that I added to the header.php child theme file:
    <?php echo do_shortcode( '[shortcode]' ) ?>

    Here is where it’s located in the header.php file:

    <div id="header-section" class="<?php echo $header_layout; ?> <?php echo $logo_class; ?>">
                    <?php echo do_shortcode( '[shortcode]' ) ?>
    		<?php echo sf_header($header_layout); ?>
    </div>

    How can make the short code appear in the row div next to the logo instead of outside the div?

    Thanks!

    #79354
    msc-val
    Member
    Post count: 71

    I don’t mean to be rude but is there anyone that could help with this?

    #79471
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    If you provide specific page url so i can debug to fix the issue very soon .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #79585
    msc-val
    Member
    Post count: 71

    Unfortunately the site is still on my local machine for now. Here is a screenshot of the actual placement:
    https://www.dropbox.com/s/20043dhz8qepgl4/actual_placement.png

    Here is the desired placement (I just used FireBug to move the div inside the logo div):
    https://www.dropbox.com/s/zkc3molrjq6giqv/desired_placement.png

    Hope that helps.
    Thanks!

    #79591
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please put this code at functions.php of child theme :

    function sf_logo($logo_class) {
    			
    			//VARIABLES
    			global $woocommerce;
    			$options = get_option('sf_dante_options');
    			$show_cart = $options['show_cart'];
    			$logo = $retina_logo = "";
    			if (isset($options['logo_upload'])) {
    			$logo = $options['logo_upload'];
    			}
    			if (isset($options['retina_logo_upload'])) {
    			$retina_logo = $options['retina_logo_upload'];
    			}
    			if ($retina_logo == "") {
    			$retina_logo = $logo;
    			}
    			$logo_output = "";		
    			$logo_alt = get_bloginfo( 'name' );
    			$logo_link_url = home_url();
    			
    			
    			// LOGO OUTPUT
    			$logo_output .= '<div id="logo" class="'.$logo_class.' clearfix">'. "\n";
                            $logo_output .= '<div class="issuem_title" >'.do_shortcode( '[issuem_issue_title]' ).'</div>'."\n";
    			$logo_output .= '<a href="'.$logo_link_url.'">'. "\n";
    			if ($logo != "") { 
    			$logo_output .= '<img class="standard" src="'.$logo.'" alt="'.$logo_alt.'" />'. "\n";
    			} else {
    			$logo_output .= '<h1 class="standard">'.$logo_alt.'</h1>'. "\n";
    			}
    			if ($retina_logo != "") {
    			$logo_output .= '<img class="retina" src="'.$retina_logo.'" alt="'.$logo_alt.'" />'. "\n";
    			} else {
    			$logo_output .= '<h1 class="retina">'.$logo_alt.'</h1>'. "\n";
    			}
    			$logo_output .= '</a>'. "\n";
    			$logo_output .= '<a href="#" class="visible-sm visible-xs mobile-menu-show"><i class="ss-rows"></i></a>'. "\n";
    			if ($show_cart && $woocommerce != "") {
    			$logo_output .= '<a href="'.$woocommerce->cart->get_cart_url().'" class="visible-sm visible-xs mobile-cart-link"><i class="ss-cart"></i></a>'. "\n";
    			}
    			$logo_output .= '</div>'. "\n";
    			
    			
    			// LOGO RETURN		
    			return $logo_output;
    		}

    Hope that will place it correct position.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #79618
    msc-val
    Member
    Post count: 71

    The “Vitae- Winter 2013” is outputted through the plugin shortcode referenced above (<?php echo do_shortcode( ‘[shortcode]’ ) ?>) and it isn’t static text. The idea here is as you click to view the previous issues of the magazine, that line changes to display the magazine issue that is being browsed. For example if you select “Summer 2013”, it will display “Summer 2013” not “Winter 2013”.

    If I replace:
    $logo_output .= '<div class="issuem_title" >Vitae - Winter 2013</div>'. "\n";
    with:
    $logo_output .= '<div class="issuem_title" > <?php echo do_shortcode( '[issuem_issue_title]' ) ?> </div>'. "\n";
    Then it breaks the site.

    Thank you for your continuos help and support.

    #79625
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have corrected code at http://support.swiftideas.net/forums/topic/display-shortcode-next-to-logo/#post-79591 so use that.

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #79629
    msc-val
    Member
    Post count: 71

    That worked! Thank you so much for your help and great support.

    #79633
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome . I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register