Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default Banner HTML code to link to subcategory

    Hi all,
    I would like a banner I've created to link to a subcategory within my store. I don't know the proper coding to make this happen.
    Presently I have the banner linking to- index.php?main_page=index&cPath=4_15 -but it opens in a new window.
    I need it to open as the category links do, within the site.
    Any help will be much appreciated. Thanks

  2. #2
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default Re: Banner HTML code to link to subcategory

    I have changed from a banner to a "custom sidebox" using the custom sidebox module to accomplish linking to a subcategory within my site. I still need some help with the code if anyone would like to share their expertise!

    This is the code i placed in the sidebox- but it opens in a new window and I'd like it to open just like the links in the categories or information sideboxes do- in the same window.

    code used in sidebox:
    <?php
    // -----------------------------------
    // MY CUSTOM SIDE PANEL ITEM
    // -----------------------------------

    // test if box should be displayed
    $show_In_Store_Specials = true;

    if ($show_In_Store_Specials == true) {
    ?>

    <div align="center" style="padding:5px;">
    <p><strong><font color="#FF0000" size="4"><a href="/index.php?main_page=index&cPath=4_15_19" target="_blank"><em>Free Shipping on All Books</em></a></font></strong></p><b>
    </div>

    <?php }
    ?>

    Help is greatly appreciated. thanks in advance.
    ooakllc

  3. #3

    Default Re: Banner HTML code to link to subcategory

    target="_blank"
    This is what's forcing it to open in a new window. Delete that part so your link looks like this:

    Code:
    <a href="/index.php?main_page=index&cPath=4_15_19">
    Sarah

  4. #4
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default Re: Banner HTML code to link to subcategory

    sarahmichelle2472,
    Namaste. Thank you for taking the time to correct my problem. The link works fine now, and I learned a little coding!
    Thank you.
    ooakllc

 

 

Similar Threads

  1. HTML Editor preview changes to Plain Text with HTML code
    By Morph99 in forum Basic Configuration
    Replies: 5
    Last Post: 3 Jan 2011, 10:12 PM
  2. Replies: 2
    Last Post: 25 Oct 2010, 11:52 PM
  3. Skip subcategory link and list all subcategory products as product listing
    By ellivir in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2010, 05:06 PM
  4. Defining a subcategory - code problems
    By G3sal in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 24 Jul 2010, 11:51 PM
  5. replace subcategory pics with html
    By chuender in forum General Questions
    Replies: 3
    Last Post: 14 Feb 2008, 10:20 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