Putting HTML in a Wordpress PHP call

I'm looking to add an image in the header right text div instead of calling for the text from the theme. I want to do this manually, but can't figure out the proper syntax. Here is the code:

echo '<div class="logo-right-text">';
                echo do_shortcode( __(get_option(THEME_SHORT_NAME . '_logo_right_text'), 'gdl_front_end') );
                echo '</div>';

Any help would be greatly appreciated.

Answers


You upload image to images directory into theme current:

echo '<div class="logo-right-text">';
echo '<img src="<?php echo get_template_directory_uri(); ?>/images/Image_name.png" border="0"></a>';
echo '</div>';

Need Your Help

Saving Hashed Version of User Password in Django Form Not Working

python django django-forms django-views

I have been trying to save the hashed version of a user password but it's not working.

Preg-match (allow 4-15 alpha-num-underscore chars)

php regex preg-match

Before you say I could find it online... I tried but I am not experienced with the subject :(

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.