• Hey guys, i made a theme in HTML/CSS on my computer, and now im working on putting in the right php code…

    I have a logo that goes in the top left corner of my website at all times.
    I uploaded this to my media library, and now i can’t access it with the code i am currently using.

    right now the code looks like this in my header.php :

    <header>
    		<img id="logoicon" src="<?php echo get_bloginfo('template_directory');?>/images/lpicongrey.jpg" class="" alt="LearnPak, Share Education" />
    
    </header>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    all i need to know is what php code to put in my <img tag that will display my logo image.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Does your theme support custom headers?

    Thread Starter coldapache

    (@coldapache)

    I don’t know.

    All the theme consists of at the moment is

    header.php
    footer.php
    index.php
    style.css

    everything inside of it is essentially pure html/css that i zipped and uploaded as a theme. I know very little about using code to display content from wordpress.

    You made this theme, yes? So did you add support for custom headers?

    Thread Starter coldapache

    (@coldapache)

    Yeah i made it. So basically if i go in my functions.php file and add support for custom headers i should be good to go with this code? :

    <img id=”logoicon” src=”<?php echo get_bloginfo(‘template_directory’);?>/images/lpicongrey.jpg” class=”” alt=”” />

    Thread Starter coldapache

    (@coldapache)

    I didn’t add support for custom headers yet, to answer your question.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting images from media library’ is closed to new replies.