Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #297893

    HI!
    I have several counter in the footer first four are sitting in one line, the other two yell.ru and yelp.com for some reason are stacked under each other.. Do you know how to make them all in one line?

    this is the code for the counters in footer.php

    	<?php
    		global $avia_config;
    		$blank = isset($avia_config['template']) ? $avia_config['template'] : "";
    
    		//reset wordpress query in case we modified it
    		wp_reset_query();
    
    		//get footer display settings
    		$the_id 				= avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages
    		$footer 				= get_post_meta($the_id, 'footer', true);
    		$footer_widget_setting 	= !empty($footer) ? $footer : avia_get_option('display_widgets_socket');
    
    		//check if we should display a footer
    		if(!$blank && $footer_widget_setting != 'nofooterarea' )
    		{
    			if( $footer_widget_setting != 'nofooterwidgets' )
    			{
    				//get columns
    				$columns = avia_get_option('footer_columns');
    		?>
    				<div class='container_wrap footer_color' id='footer'>
    
    					<div class='container'>
    
    						<?php
    						do_action('avia_before_footer_columns');
    
    						//create the footer columns by iterating
    
    						
    				        switch($columns)
    				        {
    				        	case 1: $class = ''; break;
    				        	case 2: $class = 'av_one_half'; break;
    				        	case 3: $class = 'av_one_third'; break;
    				        	case 4: $class = 'av_one_fourth'; break;
    				        	case 5: $class = 'av_one_fifth'; break;
    				        	case 6: $class = 'av_one_sixth'; break;
    				        }
    				        
    				        $firstCol = "first el_before_{$class}";
    
    						//display the footer widget that was defined at appearenace->widgets in the wordpress backend
    						//if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php
    						for ($i = 1; $i <= $columns; $i++)
    						{
    							if($i != 1) $class .= " el_after_{$class}  el_before_{$class}";
    							echo "<div class='flex_column {$class} {$firstCol}'>";
    							if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column'.$i) ) : else : avia_dummy_widget($i); endif;
    							echo "</div>";
    							$firstCol = "";
    						}
    
    						do_action('avia_after_footer_columns');
    
    						?>
    
    					</div>
    
    				<!-- ####### END FOOTER CONTAINER ####### -->
    				</div>
    
    	<?php   } //endif nofooterwidgets ?>
    
    			<!-- end main -->
    			</div>
    
    			<?php
    
    			//copyright
    			$copyright = do_shortcode( avia_get_option('copyright', "&copy; ".__('Copyright','avia_framework')."  - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>") );
    
    			// you can filter and remove the backlink with an add_filter function
    			// from your themes (or child themes) functions.php file if you dont want to edit this file
    			// you can also just keep that link. I really do appreciate it ;)
    			
    
    			//you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
    			if($copyright && strpos($copyright, '[nolink]') !== false)
    			{
    				$kriesi_at_backlink = "";
    				$copyright = str_replace("[nolink]","",$copyright);
    			}
    
    			if( $footer_widget_setting != 'nosocket' )
    			{
    
    			?>
    
    				<footer class='container_wrap socket_color' id='socket' <?php avia_markup_helper(array('context' => 'footer')); ?>>
                        <div class='container'>
    
                            <span class='copyright'><?php echo $copyright . $kriesi_at_backlink; ?></span>
    
                            <?php
                                echo "<nav class='sub_menu_socket' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
                                    $avia_theme_location = 'avia3';
                                    $avia_menu_class = $avia_theme_location . '-menu';
    
                                    $args = array(
                                        'theme_location'=>$avia_theme_location,
                                        'menu_id' =>$avia_menu_class,
                                        'container_class' =>$avia_menu_class,
                                        'fallback_cb' => '',
                                        'depth'=>1
                                    );
    
                                    wp_nav_menu($args);
                                echo "</nav>";
                            ?>
    
                        </div>
    
    	            <!-- ####### END SOCKET CONTAINER ####### -->
    				</footer>
    
    			<?php
    			} //end nosocket check
    
    		}
    		else
    		{
    			echo "<!-- end main --></div>";
    		} //end blank & nofooterarea check
    
    		//display link to previeous and next portfolio entry
    		echo avia_post_nav();
    
    		echo "<!-- end wrap_all --></div>";
    
    		if(isset($avia_config['fullscreen_image']))
    		{ ?>
    			<!--[if lte IE 8]>
    			<style type="text/css">
    			.bg_container {
    			-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale')";
    			filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale');
    			}
    			</style>
    			<![endif]-->
    		<?php
    			echo "<div class='bg_container' style='background-image:url(".$avia_config['fullscreen_image'].");'></div>";
    		}
    	?>
    
    <?php
    
    	/* Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    
    ?>
    <a href='#top' title='<?php _e('Scroll to top','avia_framework'); ?>' id='scroll-top-link' <?php echo av_icon_string( 'scrolltop' ); ?>><span class="avia_hidden_link_text"><?php _e('Scroll to top','avia_framework'); ?></span></a>
    <div id="fb-root"></div>
    <!-- Yandex.Metrika informer -->
    <a href="https://metrika.yandex.ru/stat/?id=25691525&from=informer"
    target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/25691525/3_1_FFFFFFFF_EFEFEFFF_0_pageviews"
    style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:25691525,lang:'ru'});return false}catch(e){}"/></a>
    <!-- /Yandex.Metrika informer -->
    
    <!-- Yandex.Metrika counter -->
    <script type="text/javascript">
    (function (d, w, c) {
        (w[c] = w[c] || []).push(function() {
            try {
                w.yaCounter25691525 = new Ya.Metrika({id:25691525,
                        webvisor:true,
                        clickmap:true,
                        trackLinks:true,
                        accurateTrackBounce:true});
            } catch(e) { }
        });
    
        var n = d.getElementsByTagName("script")[0],
            s = d.createElement("script"),
            f = function () { n.parentNode.insertBefore(s, n); };
        s.type = "text/javascript";
        s.async = true;
        s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
    
        if (w.opera == "[object Opera]") {
            d.addEventListener("DOMContentLoaded", f, false);
        } else { f(); }
    })(document, window, "yandex_metrika_callbacks");
    </script>
    <noscript><div><img src="//mc.yandex.ru/watch/25691525" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
    <!-- /Yandex.Metrika counter -->
    
    <!-- begin of Top100 code -->
    
    <script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?3038058"></script>
    <noscript>
    <a href="http://top100.rambler.ru/navi/3038058/">
    <img src="http://counter.rambler.ru/top100.cnt?3038058" alt="Rambler's Top100" border="0" />
    </a>
    
    </noscript>
    <!-- end of Top100 code -->
    <!--LiveInternet counter--><script type="text/javascript"><!--
    document.write("<a href='//www.liveinternet.ru/click' "+
    "target=_blank><img src='//counter.yadro.ru/hit?t52.6;r"+
    escape(document.referrer)+((typeof(screen)=="undefined")?"":
    ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
    screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
    ";"+Math.random()+
    "' alt='' title='LiveInternet: number of pageviews and visitors"+
    " for 24 hours is shown' "+
    "border='0' width='88' height='31'><\/a>")
    //--></script><!--/LiveInternet-->
    
    <!--bigmir)net TOP 100-->
    <script type="text/javascript" language="javascript"><!--
    bmN=navigator,bmD=document,bmD.cookie='b=b',i=0,bs=[],bm={v:16935163,s:16935163,t:3,c:bmD.cookie?1:0,n:Math.round((Math.random()* 1000000)),w:0};
    for(var f=self;f!=f.parent;f=f.parent)bm.w++;
    try{if(bmN.plugins&&bmN.mimeTypes.length&&(x=bmN.plugins['Shockwave Flash']))bm.m=parseInt(x.description.replace(/([a-zA-Z]|\s)+/,''));
    else for(var f=3;f<20;f++)if(eval('new ActiveXObject("ShockwaveFlash.ShockwaveFlash.'+f+'")'))bm.m=f}catch(e){;}
    try{bm.y=bmN.javaEnabled()?1:0}catch(e){;}
    try{bmS=screen;bm.v^=bm.d=bmS.colorDepth||bmS.pixelDepth;bm.v^=bm.r=bmS.width}catch(e){;}
    r=bmD.referrer.replace(/^w+:\/\//,'');if(r&&r.split('/')[0]!=window.location.host){bm.f=escape(r).slice(0,400);bm.v^=r.length}
    bm.v^=window.location.href.length;for(var x in bm) if(/^[vstcnwmydrf]$/.test(x)) bs[i++]=x+bm[x];
    bmD.write('<a href="http://www.bigmir.net/" target="_blank" onClick="img=new Image();img.src="http://www.bigmir.net/?cl=16935163";"><img src="http://c.bigmir.net/?'+bs.join('&')+'"  width="88" height="31" border="0" alt="bigmir)net TOP 100" title="bigmir)net TOP 100"></a>');
    //-->
    </script>
    
    <noscript>
    <a href="http://www.bigmir.net/" target="_blank"><img src="http://c.bigmir.net/?v16935163&s16935163&t3" width="88" height="31" alt="bigmir)net TOP 100" title="bigmir)net TOP 100" border="0" /></a>
    </noscript>
    
    <!--bigmir)net TOP 100-->
    <div id="yelp-biz-badge-plain-zScAJRejYOlU8GjNG_LrAQ"><a href="http://www.yelp.com/biz/alex-pavlov-real-estate-broker-marina-del-rey-3">Check out Alex Pavlov Real Estate Broker on Yelp</a></div><script type="text/javascript">(function(d, t) {var g = d.createElement(t);var s = d.getElementsByTagName(t)[0];g.id = "yelp-biz-badge-script-plain-zScAJRejYOlU8GjNG_LrAQ";g.src = "//dyn.yelpcdn.com/biz_badge_js/en_US/plain/zScAJRejYOlU8GjNG_LrAQ.js";s.parentNode.insertBefore(g, s);}(document, 'script'));</script>
    
    <div id="yellrank"></div>
    <script src="http://www.yell.ru/yellrank/yellrank.js/?cmp=10980453"></script> 
    
    </body>
    </html>
    
    #297989

    Hi Igor!

    Can you please post the link to your website?

    Regards,
    Yigit

    #298114

    kupit-dom.com

    #298228

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    div#yelp-biz-badge-plain-zScAJRejYOlU8GjNG_LrAQ, div#yellrank { float: left; }

    You should add class to your other links as well to make them inline with yelp and yellrank logos

    Cheers!
    Yigit

    #298261

    Thank you for your help Yigit! You are a true superstar!
    I’ll read up about classes for links

    #298268

    Hi!

    You are welcome Igor, we are always glad to help!
    I will keep the thread open, after adding classes to other links you may need to add additional custom CSS code :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.