X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Replacing static page headings with images (https://forum.x-cart.com/showthread.php?t=55199)

Sisom 08-22-2010 10:48 PM

Replacing static page headings with images
 
Hi, is it possible to replace the static page titles with an image instead?
I presume this might be quite difficult because the static page pulls the heading from the title that you give the static page.
Many thanks in advance.

cflsystems 08-23-2010 03:14 AM

Re: Replacing static page headings with images
 
You will have to edit dialog.tpl and put an if statement for {$title}

{if $main ne "pages"}{$title}{/if}

then just insert image in the static page body
You may also need to edit skin1/cusotmer/main/pages.tpl - there is a h1 tag with the title

Sisom 08-25-2010 09:30 AM

Re: Replacing static page headings with images
 
Many thanks for your help Steve. I only want to use an image heading on some of the static pages, is that possible?

cflsystems 08-25-2010 11:06 AM

Re: Replacing static page headings with images
 
Use {$page_data.pageid eq "xxx"} to restrict to individual pages

Sisom 08-25-2010 03:18 PM

Re: Replacing static page headings with images
 
Thanks very much Steve, that's exactly what I wanted! I'll give it a try and let you know how I get on.


All times are GMT -8. The time now is 07:20 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.