Quote:
Originally Posted by hausarzt
Argh, did not work as expected.
Well, the code works, yeah, but it messes my layout up a little.
Any chance to put the code
Code:
if( function_exists('the_ad_placement') ) { the_ad_placement('placement_after_vote'); }
inside the <h2>-tag?
|
Hey, I must have missed this.
You can very easily put it inside of <h2> tags.
You can do:
$return .= "<div class='wp-hotornot-title'><h2>";
if( function_exists('the_ad_placement') )
{
$return .=the_ad_placement('placement_after_vote');
}
$return .="</h2></div>";
Or:
$return .= "<div class='wp-hotornot-title'>";
if( function_exists('the_ad_placement') )
{
$return .="<h2> . the_ad_placement('placement_after_vote') . "</h2>";
}
$return .="</div>";
The first one, the h2 tags will always be there even if there is nothing inside of them.
The second one the h2 tags will only be there when the ad placement is there.
Probably does not matter at all but could depending on what other code you have going on in there.
.