This topic has 4 replies, 2 voices, and was last updated 9 years by shellycs.

  • Author
  • #44749
     shellycs
    Participant

    On my home page I am using layout right side bar template. I want to put an image going right across the bottom of the page above the footer with no gap and have a link from it to another page. Is it possible? At the moment I can only get it to appear in the main section. My website is http://startupmum.com.au/preview. Cheers!

    #44759
     sharmstr
    Moderator

    Put this is your functions.php file

    COPY CODE
    
    
    add_action('kleo_after_main','inject_image');
    function inject_image() {
    	if ( is_front_page() ) 
    	echo "image code here";	
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #44763
     shellycs
    Participant

    Thanks for the quick response. Sorry I am new to doing code…do I put just the image url in between the “” or do I need to stick img src as well? It’s coming up saying “image code here” on the page right now so its almost working 🙂

    #44811
     sharmstr
    Moderator

    You need to put the img src there.

    COPY CODE
    
    echo '<img src="path-to-image.jpg" />';
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #45206
     shellycs
    Participant

    Works perfectly!! You guys are legendary!! The best theme support I have ever dealt with 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?