Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How Can I Modify These Links?

    For the Shop Our Sale link, there is already a blank rule in stylesheet_module_tabs.css:

    #moduleMenu span a:hover {}

    Just add your color to that.

    The link destination will have to be set in the custom javascript file for the mod.

  2. #2
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: How Can I Modify These Links?

    Sorry to be so naive. For the following, I am looking to get a hover color for all three. Would I use the last one of the three listed and paste it to the bottom of the stylesheet? Do I just add the color # in the brackets? Don't I need to add the hover?


    p+.navNextPrevList {}
    p+.navNextPrevList+.navNextPrevList {}
    p+.navNextPrevList+.navNextPrevList+.navNextPrevList {}

    clueless~

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How Can I Modify These Links?

    If you want the same styling for all three, just add a rule for

    .navNextPrevList:hover {color: #aabbcc;}

    pretty much anywhere in your stylesheet. A place where it is easy to find would be good, either with rules for similar/related elements or at the bottom of the stylesheet.

  4. #4
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: How Can I Modify These Links?

    Quote Originally Posted by gjh42 View Post
    If you want the same styling for all three, just add a rule for

    .navNextPrevList:hover {color: #aabbcc;}

    pretty much anywhere in your stylesheet. A place where it is easy to find would be good, either with rules for similar/related elements or at the bottom of the stylesheet.
    Entered:

    .navNextPrevList:hover {color: #ed3a84;}

    to bottom of stylesheet and still no hover color. Crazy how a simple thing like this causes so much frustration.

    http://designerperfumesnob.authsafe....en-p-3613.html

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How Can I Modify These Links?

    Okay, you want an image to change color on hover. CSS can't do that. It could switch the background-image to a different one, or shift it so that a differently-colored version comes into view, but it can't change a foreground image.

    You have image buttons for the links, even though they are identical to what you would get with text.

  6. #6
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: How Can I Modify These Links?

    I understand. I replaced an image with a different image and neither had the hover feature. I didn't realize I could use text. Would it then be able to get a hover color? If so, how would I change it to text?

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How Can I Modify These Links?

    I investigated the long convoluted chain of button use, and there doesn't appear to be a way to just substitute text for the image.
    You would need to edit /includes/templates/your_template/templates/tpl_product_next_previous.php in this area:
    PHP Code:
    <p class="navNextPrevCounter"><?php echo (PREV_NEXT_PRODUCT); ?><?php echo ($position+"/" $counter); ?></p>
    <div class="navNextPrevList"><a href="<?php echo zen_href_link(zen_get_info_page($previous), "cPath=$cPath&products_id=$previous"); ?>"><?php echo $previous_image $previous_button?></a></div>

    <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT"cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LISTBUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div>

    <div class="navNextPrevList"><a href="<?php echo zen_href_link(zen_get_info_page($next_item), "cPath=$cPath&products_id=$next_item"); ?>"><?php echo  $next_item_button $next_item_image?></a></div>
    Replace the
    <?php echo $previous_image . $previous_button; ?>
    and similar parts with the text you want. The quick and dirty way would be to put the text directly in the code; if you want to use the official method, or use multiple languages, you need to echo constants which you then define in a language file. You can use BUTTON_RETURN_TO_PROD_LIST_ALT, BUTTON_PREVIOUS_ALT and BUTTON_NEXT_ALT for the text (/includes/languages/english/button_names.php).
    PHP Code:
    <p class="navNextPrevCounter"><?php echo (PREV_NEXT_PRODUCT); ?><?php echo ($position+"/" $counter); ?></p>
    <div class="navNextPrevList"><a href="<?php echo zen_href_link(zen_get_info_page($previous), "cPath=$cPath&products_id=$previous"); ?>"><?php echo BUTTON_PREVIOUS_ALT?></a></div>

    <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT"cPath=$cPath"); ?>"><?php echo BUTTON_RETURN_TO_PROD_LIST_ALT?></a></div>

    <div class="navNextPrevList"><a href="<?php echo zen_href_link(zen_get_info_page($next_item), "cPath=$cPath&products_id=$next_item"); ?>"><?php echo  BUTTON_NEXT_ALT?></a></div>
    Last edited by gjh42; 9 Nov 2012 at 06:22 PM.

 

 

Similar Threads

  1. How to modify css to align horizontally these two items?
    By westdh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Aug 2012, 02:11 PM
  2. Categories - how to delete these links?
    By tparvaiz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Jul 2011, 10:48 AM
  3. How did I add these links ?
    By ggbarnum in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2010, 09:29 PM
  4. How do i remove these certain links
    By lizar5- in forum General Questions
    Replies: 4
    Last Post: 18 Jan 2009, 10:04 PM
  5. How to modify the top menu links
    By cadarilondon in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Aug 2007, 12:02 PM

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