Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2012
    Location
    Kitty Hawk, NC
    Posts
    55
    Plugin Contributions
    0

    Default Banner Ad for One Product Page Only

    I have a jewelry banner ad (footer) that I only want displayed on my Jewelry product page. Is there a way to turn the banner off the Home page and all other products pages??


    Thank you!
    Gina
    http://enchantedcottageshop.com
    Last edited by enchanted1; 11 Oct 2014 at 06:05 PM.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Banner Ad for One Product Page Only

    Quote Originally Posted by enchanted1 View Post
    I have a jewelry banner ad (footer) that I only want displayed on my Jewelry product page. Is there a way to turn the banner off the Home page and all other products pages??


    Thank you!
    Gina
    http://enchantedcottageshop.com
    in your shop/includes/templates/elegancer/css/stylesheet.css file add the following at the end of the file or at least after the last occurrence of #bannerFour:

    Code:
    #bannerFour {
      display: none;
    }
    Then create a file that has the name of your product or category for which it is to be displayed...
    so for example if category 3 is the category that contains the products to have that banner, then the filename would be:

    c_3.css and located in the same directory as above: shop/includes/templates/elegancer/css/c_3.css

    A reference for use would be: http://www.zen-cart.com/wiki/index.p...Per-Page-Rules

    and add the following css into it:
    Code:
    #bannerFour {
      display: block;
    }
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Aug 2012
    Location
    Kitty Hawk, NC
    Posts
    55
    Plugin Contributions
    0

    Default Re: Banner Ad for One Product Page Only

    Thank you so much for helping me...it is greatly appreciated! My only question is how would I know this is bannerFour? I don't see where the banners are numbered when I go into banner manager. Thanks!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Banner Ad for One Product Page Only

    Quote Originally Posted by enchanted1 View Post
    Thank you so much for helping me...it is greatly appreciated! My only question is how would I know this is bannerFour? I don't see where the banners are numbered when I go into banner manager. Thanks!
    Well, it was determined/assumed based on the description that the banner at the bottom of the index page (found one on your site) was not to be displayed. That banner had the html/css tag applicable to bannerfour. So aa method was devised to hide it, but... If there are multiple banners all assigned to the same group or same location(s) as defined through the banner manager and configuration template layout, then the method suggested does not work as it eliminates all banners from being displayed at the page(s) not just a single banner of many. If that is/was the goal to only not show a single banner of many except when in a particular page/condition then the above does not apply.

    As to how to identify which banner it is/was from my side? Viewed the source code of the provided page and looked for banners that were displayed. Could take the same tact to identify the other banner position(s) to hide, but understand that hiding a banner could have an impact to the rest of site "advertising" as then the banner position is no longer available for display. Sorry to provide such a drastic approach, I didn't think of the single banner of many aspect when providing a response.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Aug 2012
    Location
    Kitty Hawk, NC
    Posts
    55
    Plugin Contributions
    0

    Default Re: Banner Ad for One Product Page Only

    Thanks! Maybe one day Zencart will have the option to post banners to certain pages

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Banner Ad for One Product Page Only

    Quote Originally Posted by enchanted1 View Post
    Thanks! Maybe one day Zencart will have the option to post banners to certain pages
    Certainly something that could be done with custom coding. Add a few fields to the banner portion of the database, and code to track/display/show the banner on the applicable page(s) and away it goes. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v155 Filter: listing only one product - dont' redirect to product page ?
    By mesnitu in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 May 2016, 02:43 PM
  2. Remove Banner on Product Detail Page only?
    By carol2848 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Oct 2011, 12:52 PM
  3. Replies: 0
    Last Post: 1 Jul 2009, 05:02 PM
  4. Login for Price for only ONE product....
    By jettrue in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Jul 2007, 05:57 PM
  5. Only one product type in list; only in one category. Why?
    By whitefael in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 Jan 2007, 06:13 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR