I inserted an image in a block and when I put it in the Bottom first, middle or last areas it does not show. If I put text in a block and insert it in the above areas it shows up just fine. Is there something I am missing or is there more I need to do to get it to show?

By the way I love the danland theme... I have been modifying it before I add more modules and things... Here is a link to the site: http://0183818.netsolhost.com/tcsite01/ Please give me some feedback if you have time.

Comments

danpros’s picture

Hi,

Maybe you forget to change the input format. Use full html.

Dan

Deepika.chavan’s picture

Hi,
1) Try adding following code in your block's body and select php format:

<?php
$img_path= base_path() . path_to_theme();
?>
<img src="<?php print $img_path ?>/images/YOUR_IMAGE.jpg" alt="YOUR IMAGE" />

2) Save your image in "/themes/danland/images/. " folder.
3) Replace YOUR_IMAGE.jpg by your image's name.

Rgrds,

Deepika Chavan.

breeze76’s picture

Dan,
That was it.. geez... I knew it was something simple I missed, thanks again and great theme....

gene

danpros’s picture

Status: Active » Closed (fixed)

Hi,

Okay I will close this :)

Dan

Harbir Nat’s picture

Deepika,

The Block's body only allows for Filtered HTML, Full HTML and Text formats not PHP.

How does one insert an image in the block ?

Harbir

Deepika.chavan’s picture

Hi Harbir Nat,
Please enable the php filter on module's configuration page. So you can use php code in block body.

Regards,
Deepika chavan.