Forums

[resolved] including a picture in page/post (6 posts)

  1. pavlos1982
    Member
    Posted 2 years ago #

    im having some issue adding a picture to my page , i dont want to do it via the wordpress control panel, is there a template tag i can used to include an email i already tried <img src="<?php bloginfo('template_url'); ?>/image/bg.jpg" id="background" alt="" title ="" />, but did nt work

  2. pavlos1982
    Member
    Posted 2 years ago #

    i meant image not email

  3. Chris_K
    Member
    Posted 2 years ago #

    Where's the image?

    When writing your post, there's a button above to insert an image. Click that and look closely at the top of the resulting dialog. The default is the uploader tab, but there's also a tab to allow you to add an image from URL. Go to that tab, enter the URL of the image's location and you're good to go.

  4. chasgroh
    Member
    Posted 2 years ago #

    ...I've uploaded several images but I don't think they're sized correctly...they look good, but squeezed-in...is there an ideal size for images? Mine are pretty much 4x6 portraits or 6x4 landscape views...

  5. zerosyd
    Member
    Posted 2 years ago #

    <img src="<?php bloginfo('template_directory'); ?>/images/bg.jpg" id="background" alt="" title ="" />

    This should work. you also wrote image. and normaly the folder is called images.

  6. pavlos1982
    Member
    Posted 2 years ago #

    thanks all of you , i did try that <img src="<?php bloginfo('template_directory'); ?>/images/bg.jpg" id="background" alt="" title ="" />

    zero did nt know but what i got a plug in called exec-php which then allows you to put php code into your post or pages and that is working now :)

Topic Closed

This topic has been closed to new replies.

About this Topic