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
pavlos1982
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.
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...
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.
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 :)