encode footer
-
Hi,
I don’t understand how I can encode my email-adress in my footer. You explained it here:
https://ww.wp.xz.cn/support/topic/how-to-get-to-work-on-whole-website?replies=2
but I don’t know where I have to write that:if (function_exists(‘eeb_email’)) {
echo eeb_email(‘[email protected]’);
}I tried several things but it doesn’t work. I am not an expert. Please say me where exactly do I write this lines?
The Website is http://www.diarrakonate.com. Thanks!!
-
You can write it in one of your template files of your theme. In your case that would probably be
footer.php.Thanks, but in footer.php it doesn’t work. When I write it in you only can read it on the Website. I tried it before </body>, between </body> and </html> and and after </html>. This ist my whole footer.php. Where exactly and how exactly do I have to write this text please? Thanks!
<?php
/**
* Footer Template
*
* The footer template is generally used on every page of your site. Nearly all other
* templates call it somewhere near the bottom of the file. It is used mostly as a closing
* wrapper, which is opened with the header.php file. It also executes key functions needed
* by the theme, child themes, and plugins.
*
* @package Origin
* @subpackage Template
*/
?>
<?php get_sidebar( ‘primary’ ); // Loads the sidebar-primary.php template. ?><?php do_atomic( ‘close_main’ ); // origin_close_main ?>
</div><!– #main –>
<?php do_atomic( ‘after_main’ ); // origin_after_main ?>
<?php get_sidebar( ‘subsidiary’ ); // Loads the sidebar-subsidiary.php template. ?>
<?php do_atomic( ‘before_footer’ ); // origin_before_footer ?>
<div id=”footer”>
<?php do_atomic( ‘open_footer’ ); // origin_open_footer ?>
<div class=”footer-content”>
<?php echo apply_atomic_shortcode( ‘footer_content’, hybrid_get_setting( ‘footer_insert’ ) ); ?>
<?php do_atomic( ‘footer’ ); // origin_footer ?>
</div>
<?php do_atomic( ‘close_footer’ ); // origin_close_footer ?>
</div><!– #footer –>
<?php do_atomic( ‘after_footer’ ); // origin_after_footer ?>
</div><!– .wrap –>
</div><!– #container –>
<?php do_atomic( ‘close_body’ ); // origin_close_body ?>
<?php wp_footer(); // wp_footer ?>
</body>
</html>For example:
<div class="footer-content"> <?php echo apply_atomic_shortcode( 'footer_content', hybrid_get_setting( 'footer_insert' ) ); ?> <?php if (function_exists('eeb_email')) { echo eeb_email('[email protected]'); } ?> <?php do_atomic( 'footer' ); // origin_footer ?> </div>Thanks, but when I do it like that the whole footer is not visible :(. It doesn’t work this way. Another solution?
Just to be sure, the plugin is activated?
Yes, it’s activated.
Can I see it live?
http://www.hochkant.info
At the moment I don’t have my e-mail-adress in the footer because of this problem. Can you see enough without it?No I cannot.
The topic ‘encode footer’ is closed to new replies.