Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Mar 2015
    Posts
    105
    Plugin Contributions
    0

    Default How to add non clickable text to top?

    I have a top, where the languages choice is on the left and the home/login/checkout on the right.
    I would like to add the text, free shipping, in the middle/center. Non clickable.

    How do I do that?
    Language: Dutch
    English: not so very good
    Allready have a live shop, so building local/on my computer

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How to add non clickable text to top?

    It would help if we could see the site.

  3. #3
    Join Date
    Mar 2015
    Posts
    105
    Plugin Contributions
    0

    Default Re: How to add non clickable text to top?

    My question is, how to put a non clickable text in there.
    If it where a link, I would probably get it done.
    I think I would open tpl_header and make a
    <div id="shipping">
    Link here
    </div>
    go to the stylesheet and ad #shipping.
    Something like that.

    But now I want to add just the words Free shipping (in english, and gratis verzending in dutch) and I don't want to make it a link.
    How do I add those words if I don't want them to do anything?
    Language: Dutch
    English: not so very good
    Allready have a live shop, so building local/on my computer

  4. #4
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: How to add non clickable text to top?

    Open tpl_header.php
    \includes\templates\YOUR_TEMPLATE\common

    Find the piece of code for language selection, and the one for the login, add
    <div id="shipping">
    Link here
    </div>
    in between them.

  5. #5
    Join Date
    Mar 2015
    Posts
    105
    Plugin Contributions
    0

    Default Re: How to add non clickable text to top?

    I got it done.
    I added this to the header file

    <div id="shipping">
    <?php echo HEADER_SHIP_TEXT;?>
    </div>

    Then addes HEADER_SHIP_TEXT to the language files.

    And added #shipping to the stylesheet.

    So far so good, but i made a mess out of the places where everything goes.


    #shipping{width:70%;float:center;}
    #header-cart{font-size:140%;text-align:left;}
    #cur-lan-header{width:25%;float:left;}
    #lang_header{float:left;width:40%;margin-top:4px;}
    #navMainWrapper {margin:0 auto;color:#171717;float:right;width:70%;}
    #navMain ul {margin:0 auto;padding: 5px 0 0.5em 0;list-style-type:none;text-align:left;line-height: 1.5em;float:right;}
    #navMain ul li {display:inline;}
    #navMain ul li a {margin:0;padding:0em 1.0em;color: #a0a0a0;text-decoration:none;white-space:nowrap;font-size:100%;text-transform:uppercase;}
    #navMain ul li a:hover {color: #8db9fb;}
    #navMain i{margin-right:10px;color: #8db9fb;font-size:120%;vertical-align:middle;}
    #navMain i:hover{color:#fff;}

    I would like the language flags on the left, free shipping in the middle and the login/items/checkout on the right.
    And also on the mobile phone

    Name:  header.jpg
Views: 158
Size:  8.4 KB
    Last edited by Pompidompie; 29 Mar 2015 at 06:25 PM.
    Language: Dutch
    English: not so very good
    Allready have a live shop, so building local/on my computer

  6. #6
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: How to add non clickable text to top?

    Myabe if you post the relevant code of the tpl_header would be more helpful.

 

 

Similar Threads

  1. How to add text link for search on top menu bar?
    By hara in forum Customization from the Admin
    Replies: 1
    Last Post: 3 Oct 2008, 01:28 PM
  2. How do I add a clickable link to a pdf?
    By spetaisaac in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 May 2008, 01:57 PM
  3. Non Clickable Banners
    By gunnt in forum Basic Configuration
    Replies: 1
    Last Post: 20 Sep 2006, 11:21 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