• Resolved benjammin

    (@benjino)


    I’m trying to add an image to the footer and am not skilled with PHP. I’m basically guessing from what little I know. There is no widget area to add this image, the only way is to add it into the footer.php file like I am trying. So…

    Here’s the site: https://spencer-thomas.com

    Here’s what I’m trying to add:

    <div class="wbe-logo">
    	                            <?php <img src="..wp-content/uploads/2016/01/wbe.png" alt="wbe logo image" width="103" height="45">?>
                                </div>

    It gives me the following error:

    Parse error: syntax error, unexpected ‘<‘ in /home/73/78/2017873/web/wp-content/themes/spencerT/footer.php on line 46

    And here’s footer.php with the code I’m trying to add:

    <div id="footer">
        <div class="footer">
            <div class="container">
                <div class="row">
                    <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9 left-text">
                        <p>
                            <?php echo $foter_contact_text; ?>
                        </p>
                    </div>
                    <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3 social-container">
                            	<div class="clearfix social-icons">
                                      <ul>
                                      	<?php if ($plusinfinit_theme_options['google_id']!= '') {
                                        	echo '<li><a href="https://plus.google.com/'. $plusinfinit_theme_options['google_id'] .'"><i class="fa fa-google-plus-square"></i></a></li>';
                                       	 } ?>
                                         <?php if ($plusinfinit_theme_options['rss_id']!= '') {
                                        	echo '<li><a href="https://plus.google.com/'. $plusinfinit_theme_options['rss_id'] .'"><i class="fa fa-rss-square"></i></a></li>';
                                       	 } ?>
                                         <?php if ($plusinfinit_theme_options['facebook_id']!= '') {
                                        	echo '<li><a href="https://www.facebook.com/'. $plusinfinit_theme_options['facebook_id'] .'"><i class="fa fa-facebook-square"></i></a></li>';
                                       	 } ?>
                                         <?php if ($plusinfinit_theme_options['twitter_id']!= '') {
                                        	echo '<li><a href="https://twitter.com/'. $plusinfinit_theme_options['twitter_id'] .'"><i class="fa fa-twitter"></i></a></li>';
                                       	 } ?>
                                         <?php if ($plusinfinit_theme_options['youtube_id']!= '') {
                                        	echo '<li><a href="https://www.youtube.com/'. $plusinfinit_theme_options['youtube_id'] .'"><i class="fa fa-youtube-square"></i></a></li>';
                                       	 } ?>
                                         <?php if ($plusinfinit_theme_options['linkedin_id']!= '') {
                                        	echo '<li><a href="https://www.linkedin.com/'. $plusinfinit_theme_options['linkedin_id'] .'"><i class="fa fa-linkedin-square"></i></a></li>';
                                       	 } ?>
                                         <?php if ($plusinfinit_theme_options['contact_id']!= '') {
                                        	echo '<li><a href="'.$plusinfinit_theme_options['contact_id'] .'"><i class="fa fa-envelope-square"></i></a></li>';
                                       	 } ?>
                                      </ul>
                                </div>
                                <div class="wbe-logo">
    	                            <?php <img src="..wp-content/uploads/2016/01/wbe.png" alt="wbe logo image" width="103" height="45">?>
                                </div>
    
                  </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • no php tag needed in the html line;
    change the wrong code:

    <?php <img src="..wp-content/uploads/2016/01/wbe.png" alt="wbe logo image" width="103" height="45">?>

    to:

    <img src="..wp-content/uploads/2016/01/wbe.png" alt="wbe logo image" width="103" height="45">

    Thread Starter benjammin

    (@benjino)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add an image to the footer’ is closed to new replies.