Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need help editing side box images

Need help editing side box images

Locked

Views: 1,055

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
6 Sep 2009, 6:56 PM
#1
tntwmom avatar

tntwmom

New Zenner

Join Date:
Aug 2008
Location:
Tennessee
Posts:
42
Plugin Contributions:
0

Need help editing side box images

I am following this ~> https://www.zen-cart.com/tutorials/index.php?article=135 to edit each of my side box images, making a custom box for each box header.

But, I can't for the life of me figure out WHERE to edit the EzPages box. I've tried the "more info" and the "info" boxes, and those aren't it lol

I don't see a 'Box_Heading_EZPAGES' inside english.php TO edit. :frusty:

Any help, would GREATLY be appreciated!

The site I'm working on is https://www.Mom-Host.com if you need to see what I'm doing/trying to do.

Thanks in advance, Shannon

6 Sep 2009, 7:32 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need help editing side box images

You can also add images in the stylesheet - in this case in #ezPagesHeading, with
background-image: url(../images/yourimage.jpg);

6 Sep 2009, 7:47 PM
#3
tntwmom avatar

tntwmom

New Zenner

Join Date:
Aug 2008
Location:
Tennessee
Posts:
42
Plugin Contributions:
0

Re: Need help editing side box images

Stevesh, thanks for the reply.

I didn't see "#ezPagesHeading" in the Stylesheet. I wasn't sure if I was supposed to add it, so I tried adding that to the stylesheet, and it didn't work for me.

Any other ideas?

6 Sep 2009, 8:03 PM
#4
tntwmom avatar

tntwmom

New Zenner

Join Date:
Aug 2008
Location:
Tennessee
Posts:
42
Plugin Contributions:
0

Re: Need help editing side box images

Ok, so I was in english.php and figured I would try something. If it didn't work, I could delete it.

So, I added a couple of lines to english.php:

// ez pages
define('BOX_HEADING_EZ_PAGES','importantlinks.gif');

and it worked! My Ez Pages box image is now on my site!

I just copied the way all the other box headings looked in there, and it showed up.

Also, in EzPages.php, I replaced $title = BOX_HEADING_EZ_PAGES;

with $title = zen_image($template->get_template_dir(BOX_HEADING_EZ_PAGES, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . BOX_HEADING_EZ_PAGES, HEADER_ALT_TEXT);

Thanks for trying to help!! I hope by posting my results it can help someone else :)

8 Sep 2009, 7:00 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need help editing side box images

You were looking in the wrong file.
From Developers Toolkit output:

Searching 925 files ... for: BOX_HEADING_EZ

/public_html/includes/languages/english/extra_definitions/ez_pages_definitions.php

Line #13 : define('BOX_HEADING_EZPAGES','Important Links');

/public_html/includes/modules/sideboxes/ezpages.php

Line #20 : $title = BOX_HEADING_EZPAGES;

You were also looking for the wrong spelling (though I know it is spelled with an underscore in some places).