Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default adding buttons instead of text

    On my site i have links at the tope something like this:

    <li><a class="category-top" href="http://blossomshopkinsfloral.com/store/index.php?main_page=index&amp;cPath=14">Wedding Decorations</a> </li>

    i want to add buttons instead of text, where is that located..

    also i want ot change the main inside white, (index page) to a different color, where is that locatred in the stylesheets....thanks

  2. #2
    Join Date
    Mar 2007
    Location
    Cheshire
    Posts
    81
    Plugin Contributions
    0

    Default Re: adding buttons instead of text

    <li><a class="category-top" href="http://blossomshopkinsfloral.com/store/index.php?main_page=index&amp;cPath=14">Wedding Decorations</a> </li>

    i want to add buttons instead of text, where is that located..

    also i want ot change the main inside white, (index page) to a different color, where is that locatred in the stylesheets....thanks

    For buttons instead of text i would try something like this:

    <li><a class="category-top" href="http://blossomshopkinsfloral.com/store/index.php?main_page=index&amp;cPath=14"><img src="PATH TO BUTTON" width="BUTTON HEIGHT" height="BUTTON WIDTH" alt="Wedding Decorations" title="Wedding Decorations"></a> </li>

    To amend the main page background go to stylesheet.css (includes/templates/YOUR_OVERIDE_FILE/css)

    look for:

    #mainWrapper {
    background-color: #ffffff;

    and change it to the colour you want

  3. #3
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: adding buttons instead of text

    i understand the red changes, but what i need to know, is where is the file i need to change[edit], i am using the default files...
    thanks


    Quote Originally Posted by fantasticals View Post
    <li><a class="category-top" href="http://blossomshopkinsfloral.com/store/index.php?main_page=index&amp;cPath=14">Wedding Decorations</a> </li>

    i want to add buttons instead of text, where is that located..

    also i want ot change the main inside white, (index page) to a different color, where is that locatred in the stylesheets....thanks

    For buttons instead of text i would try something like this:

    <li><a class="category-top" href="http://blossomshopkinsfloral.com/store/index.php?main_page=index&amp;cPath=14"><img src="PATH TO BUTTON" width="BUTTON HEIGHT" height="BUTTON WIDTH" alt="Wedding Decorations" title="Wedding Decorations"></a> </li>

    To amend the main page background go to stylesheet.css (includes/templates/YOUR_OVERIDE_FILE/css)

    look for:

    #mainWrapper {
    background-color: #ffffff;

    and change it to the colour you want

  4. #4
    Join Date
    Mar 2007
    Location
    Cheshire
    Posts
    81
    Plugin Contributions
    0

    Default Re: adding buttons instead of text

    I believe you are using the categories tab option for these links so the file controling it is / templates / tpl_modules_categories_tabs.php

  5. #5
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: adding buttons instead of text

    what i nned to do is find the php that has this data:
    <li><a class="category-top" href="http://blossomshopkinsfloral.com/store/index.php?main_page=index&amp;cPath=14"><img src="PATH TO BUTTON" width="BUTTON HEIGHT" height="BUTTON WIDTH" alt="Wedding Decorations" title="Wedding Decorations"></a> </li>


    when i do to that file all i see is:

    <?php

    /**

    * Module Template - categories_tabs

    *

    * Template stub used to display categories-tabs output

    *

    * @package templateSystem

    * @copyright Copyright 2003-2005 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: tpl_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $

    */



    include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));

    ?>

    <?php if (CATEGORIES_TABS_STATUS == '1' && sizeof($links_list) >= 1) { ?>

    <div id="navCatTabsWrapper">

    <div id="navCatTabs">

    <ul>

    <?php for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>

    <li><?php echo $links_list[$i];?></li>

    <?php } ?>

    </ul>

    </div>

    </div>

    <?php } ?>

    Quote Originally Posted by fantasticals View Post
    I believe you are using the categories tab option for these links so the file controling it is / templates / tpl_modules_categories_tabs.php
    Last edited by jayson; 15 Mar 2008 at 02:57 PM.

  6. #6
    Join Date
    Mar 2007
    Location
    Cheshire
    Posts
    81
    Plugin Contributions
    0

    Default Re: adding buttons instead of text

    I believe the links are created dynamically by this piece of code:

    <li><?php echo $links_list[$i];?></li>

    not sure if its the right way but to get your links as buttons i would overwrite this

    with

    <li><href="LINK1"><img src="YOU SPECIFY"></a><href="LINK2"><img src="YOU SPECIFY"></a></li>


    etc etc

  7. #7
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: adding buttons instead of text

    thanks, what is pat to that code, is it store/includes/lang/english/classic/

    Quote Originally Posted by jayson View Post
    what i nned to do is find the php that has this data:
    <li><a class="category-top" href="http://blossomshopkinsfloral.com/store/index.php?main_page=index&amp;cPath=14"><img src="PATH TO BUTTON" width="BUTTON HEIGHT" height="BUTTON WIDTH" alt="Wedding Decorations" title="Wedding Decorations"></a> </li>


    when i do to that file all i see is:

    <?php

    /**

    * Module Template - categories_tabs

    *

    * Template stub used to display categories-tabs output

    *

    * @package templateSystem

    * @copyright Copyright 2003-2005 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: tpl_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $

    */



    include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));

    ?>

    <?php if (CATEGORIES_TABS_STATUS == '1' && sizeof($links_list) >= 1) { ?>

    <div id="navCatTabsWrapper">

    <div id="navCatTabs">

    <ul>

    <?php for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>

    <li><?php echo $links_list[$i];?></li>

    <?php } ?>

    </ul>

    </div>

    </div>

    <?php } ?>

 

 

Similar Threads

  1. buttons instead of text for each categorie
    By joejoe2009 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 9 Oct 2009, 12:10 PM
  2. Buttons images instead of text ?
    By Chariotz in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Apr 2009, 08:29 PM
  3. Buttons for Category Links instead of Text
    By scribbles in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 25 Mar 2008, 10:22 PM
  4. How to use text links instead of images for buttons
    By goodevil in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Apr 2007, 07:40 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