Quantcast
Channel: Topic Tag: footer | WordPress.org
Viewing all articles
Browse latest Browse all 13547

aurendil on "[Customizr] Adding content before footer and minor adjustements"

$
0
0

Hello,
I've managed to include content before the footer on my site (http://paratudo.org.br) by adapting a code snippet for the header. Here's the code placed in the functions.php:

add_action ('__before_footer' , 'add_content_before_footer', 0);
function add_content_before_footer() {
//checks if we are displaying the home page
if ( !tc__f( '__is_home' ) )
return;
?>
<div id="my-footer-header">
<div class="row-fluid">
<div class="span8 text-center">
<?php
printf('<h1>%1$s</h1>',
__('<div style="width:1850px; margin-left:auto; margin-right:auto;"><img src="http://www.paratudo.org.br/wp-content/uploads/2013/11/barra-de-logos-pra-site2.png" border="0" alt="" /></div>')
)
?>

</div>

</div>
</div>
<?php
}`

Although it worked, I'd like to know if there is a better solution. I think the one I found is causing this little and (for me) unsolvable problem: Unless I specify the size via <div>, the image for the site sponsors keeps getting resized to a smaller size. And by locking the img size it's no longer responsive as the other elements.

Is there a way around this? Thanks in advance.


Viewing all articles
Browse latest Browse all 13547

Trending Articles