Inserting images into custom code

Community Forums Forums General Discussion Inserting images into custom code

This topic is: not resolved

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  danrood 2 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #104166

    danrood
    Member
    Post count: 2

    I am creating a custom homepage in a child theme using the genesis framework. I am using the following code and the images are not showing up on the page. The images should be pulling from the child theme images folder. Is there some other trick to use in genesis?

    <img src="<?php bloginfo('template_url'); ?>/images/105x105.jpg" width="105" height="105" alt="105x105" />

    http://lawrencechamberdev.com
    #104167

    Lauren @ OnceCoupled
    Member
    Post count: 512

    I think I’m mostly using something like get_stylesheet_directory_uri() . '/images/105x105.jpg'

    Best,
    Lauren


    I do custom WordPress work! http://oncecoupled.com
    Contact me directly: lauren@oncecoupled.com

    #104168

    danrood
    Member
    Post count: 2

    Thanks for the info. I am designer and have limited PHP writing skills. Can you provide the full code to implement? Thanks for the quick response.

    #104188

    Lauren @ OnceCoupled
    Member
    Post count: 512

    You’d just replace everything inside your quotes with the php markup and the exact code I provided.

    Best,
    Lauren


    I do custom WordPress work! http://oncecoupled.com
    Contact me directly: lauren@oncecoupled.com

    #104191

    danrood
    Member
    Post count: 2

    I tried this but it is still not working.
    <img src="<?php get_stylesheet_directory_uri() . 'images/105x105.jpg' ?>" width="105" height="105" alt="105x105" />

    I have filled out a support ticket. Thanks again for the info.

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

You must be logged in to reply to this topic.