Modifying Just a Template Image Print E-mail

If you switch your site to one of the included templates, but don't like the image it uses at the top of the page you can change it. You'll need to create a new image and may have to pay attention to the template lay-out as the image may need to be a certain size to fit into the template correctly.

You can not direclty replace the template image, but you can change the location of the image that is referenced in the template. 

Create your new image and then upload it through the media manager in the back-end. If you place it in a folder, you will need to add that to the /images/stories part in the code example below.

You need to be a super administrator to access the tools described in the next secion. 

Edit the HTML for the template by going to the Site menu -> Template manager -> Site Templates and then clicking the radio button next to the template and then the "Edit HTML" button.

Find the image you want to replace in the HTML. It will look something like this:

<img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt=-"logo">

Change the part after the ;?> to /images/stories/mynewfile.jpg, e.g.:

<img src="<?php echo $mosConfig_live_site;?>/images/stories/mynewfile.png"  alt="logo">

Save the changes and your new image should appear when you apply that template to your site.

For more in-depth changes, see this article on working with the template installation packages. 

 

 
Joomla Template by Joomlashack
Joomla Templates by JoomlaShack Joomla Templates by Compass Design