Hey, well on my arcade I'm looking to align the add code in the center, the thing is you set the add codes in the admin panel and then you just add the php code to display the add, Like this : <?php echo show_ad("location=top468x60"); ?> PHP: How would i align that center? Using php, or any other way. Or would i have to add something before the adsense code while it's still html. Thanks
You can try <?php echo '<center>'.show_ad("location=top468x60").'</center>'; ?> Code (markup): Or to make your things even simpler, use html first and PHP inside the center tags. <center><?php echo show_ad("location=top468x60"); ?></center> Code (markup): Also if possible, try to optimize your show_ad function so you just provide top468x60 instead of providing location=top468x60 unless your situation demands it.
you may use this also <?php echo '<p align="center">'.show_ad("location=top468x60").'</p>'; ? Code (markup):
I finally found a great slider for my wordpress site but the code does not with an align feature and I would like to center this slider. here's the code for my header.php file. The question is now, how to center this. Any help will be appreciated. Thanks <?php if(is_front_page()) { if(function_exists('wp_content_slider')) { wp_content_slider(); } } ?>