<?php $lang = &JFactory::getLanguage(); if ($lang->get('tag')=="en-GB") { ?> Some HTML here... <?php } ?>
Welcome to our blog! Here you can find stuff about web development, software engineering, WordPress & about our projects and interests.
<?php $lang = &JFactory::getLanguage(); if ($lang->get('tag')=="en-GB") { ?> Some HTML here... <?php } ?>
This function will return the theme directory URL so you can use it in other functions:
get_bloginfo('template_directory');
Alternatively, this function will echo the theme directory URL to the browser:
bloginfo('template_directory');
So an example for an image in the themes images/headers
folder would be:
<img src="<?php bloginfo('template_directory'); ?>/images/headers/image.jpg" />