Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default Adding extra div to centerbox

    Hi, I just started using zc and I'm trying to figure out how to add an extra content div to the center box on my index page so that I can position extra graphic elements at the bottom of the box. Problem is I can't seem to find the right file to edit. Anyone know which one it is?

    And one more question, I'm developing my site on my local machine. If I want to edit the html_includes (like the define_main_page.php) but I want to be able to be able to reference images relatively, do I need to do it like ../../../../../images/index_pic.jpg or is there some easier way?

    Thanks for any help you can give me!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding extra div to centerbox

    Did not state if you want this on all pages or just the main/home page??

    normal relative syntax is url(../images/image_name.XXX) and the images are in the template/images dir

    You can use this in the css or as a hard code src or href entry
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding extra div to centerbox

    Sorry, I'll try to be more specific next time

    I would like to be able to add divs to the center column featured products box on my index page. I've looked around the forums but haven't seen how to do this yet. I need to add a div so I can round the edges at the bottom of the box.

    Also the images question. What I'm asking is if I edit the html_includes files ( ie \includes\languages\english\html_includes\CUSTOM\define_main_page.php ) how do I reference images from here with a relative path?

    This is my mock-up if it helps.
    http://pixelharbinger.com/mzfizzy/
    The pictures I'm trying to insert are the blue cupcake pic and the small logo above the lorem ipsum text

    Thanks for your help!

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding extra div to centerbox

    I would like to be able to add divs to the center column featured products box on my index page. I've looked around the forums but haven't seen how to do this yet. I need to add a div so I can round the edges at the bottom of the box.
    The file for featured display is tpl_featured_products_default.php but most times this can addressed in the css as if you are using an image to get the rounded corners or have a look at the nifty zen or future zen templates for how these apply code to round corners without a new div
    Also the images question. What I'm asking is if I edit the html_includes files ( ie \includes\languages\english\html_includes\CUSTOM\d efine_main_page.php ) how do I reference images from here with a relative path?
    From your pic this looks like the define_main_page.php file that is editable from the admin > tools > define page editor. You can enter most any html code there to display as you wish
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Need to remove extra div
    By Mickmo68 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Mar 2013, 11:25 PM
  2. Adding extra Div on Categories page
    By lightup in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Nov 2010, 07:01 PM
  3. Adding a new div
    By andusbeckus in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Jun 2010, 05:06 PM
  4. Adding DIV to product image
    By dscott1966 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 19 Sep 2008, 02:23 PM
  5. Adding a button to a div
    By dscott1966 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Aug 2008, 06:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg