Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    Join Date
    Aug 2013
    Location
    Bridlington
    Posts
    151
    Plugin Contributions
    0

    Default Re: Adding Text Into The Header

    Quote Originally Posted by dbltoe View Post
    The reason I was taking another look is that I wanted to make sure this wasn't going to break with a PHP upgrade. Let's try
    Code:
    <div class="logoText"><?php echo nl2br("'This is my text1.\n\rThis is my text2."); ?></div>
    If there's too much spacing between the lines, remove the \r to see if that helps. The example shown should result in
    Code:
    This is my text1.
    
    This is my text2.
    Without the \r the result should be
    Code:
    This is my text1.
    This is my text2.
    That worked however the result was the same as using the <br> option. Bare in mind that the coding is beyond my capabilities to create so all I`m doing is letting you know the results. With the code you suggested we got exactly what I needed but it threw out the icons below as seen in this screenshot.
    Click image for larger version. 

Name:	Capture.JPG 
Views:	46 
Size:	12.5 KB 
ID:	16472

    Using the BR option along with an extra line for an email link worked but still threw out the icons.
    Click image for larger version. 

Name:	Capture2.JPG 
Views:	49 
Size:	19.0 KB 
ID:	16473

    Would I be right in assuming that somewhere in the CSS file there is something stopping the header from adjusting its size to accommodate the lines of text and the icons or maybe something there to control the placement of the icons ??

  2. #22
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,710
    Plugin Contributions
    13

    Default Re: Adding Text Into The Header

    I think an aesthetically pleasing change would be to remove the margin:auto, text-align:right and float:right from the calls in line 74 of your stylesheet.css
    Code:
    #navMain ul  {/*margin:0 auto;*/padding: 0px 0 0.5em 0;list-style-type:none;/*text-align:right;*/line-height: 1.5em;/*float:right;*/}
    You can play with other settings in that area to see what you'd like as a result.
    Last edited by dbltoe; 7 Jul 2016 at 08:52 PM. Reason: correct listing
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #23
    Join Date
    Aug 2013
    Location
    Bridlington
    Posts
    151
    Plugin Contributions
    0

    Default Re: Adding Text Into The Header

    Quote Originally Posted by dbltoe View Post
    I think an aesthetically pleasing change would be to remove the margin:auto, text-align:right and float:right from the calls in line 74 of your stylesheet.css
    Code:
    #navMain ul  {/*margin:0 auto;*/padding: 0px 0 0.5em 0;list-style-type:none;/*text-align:right;*/line-height: 1.5em;/*float:right;*/}
    You can play with other settings in that area to see what you'd like as a result.
    That looks 100% better although at some point I was hoping to utilise that space for a few product pictures. That row of icons looks much better though shifted across like that ;)

  4. #24
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,710
    Plugin Contributions
    13

    Default Re: Adding Text Into The Header

    We have completely turned off the logoWrapper in most of our mobile cases. IMHO, adding too much in that area detracts rather than adds to the mix.
    For example, Amazon used to be the barest of websites with little or no images and lots of info. Take a look at today's amazon.com BUT use a developer tool for your browser to Disable Images. What you see is what a Search Engine (SE) would see. They are blind. SEs cannot see images. Only alt text.
    Thus if you are "too big to care", put more images on a page. However, you will get rank with content.
    Content impresses the SEs, the SEs tell potential customers, you put plenty of content AND images on the product page. Win, win, win.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #25
    Join Date
    Aug 2013
    Location
    Bridlington
    Posts
    151
    Plugin Contributions
    0

    Default Re: Adding Text Into The Header

    Quote Originally Posted by dbltoe View Post
    We have completely turned off the logoWrapper in most of our mobile cases. IMHO, adding too much in that area detracts rather than adds to the mix.
    For example, Amazon used to be the barest of websites with little or no images and lots of info. Take a look at today's amazon.com BUT use a developer tool for your browser to Disable Images. What you see is what a Search Engine (SE) would see. They are blind. SEs cannot see images. Only alt text.
    Thus if you are "too big to care", put more images on a page. However, you will get rank with content.
    Content impresses the SEs, the SEs tell potential customers, you put plenty of content AND images on the product page. Win, win, win.
    I could not agree more with you, could I please bother you one last time, could you take a look at the site once more, is there any way of moving the the HOME/LOGIN/SHOPPING CART icons in the header and put them under the email address ?? they look fine to me but they want them underneath.

    www.jmdelisupplies.co.uk/index.php

  6. #26
    Join Date
    May 2016
    Posts
    188
    Plugin Contributions
    0

    Default Re: Adding Text Into The Header

    Crazy that you're from Brid, I'm from Hull but just moved to the US. Didn't expect to see anyone on here from close to home aha. Hope you get your issue fixed as I'm looking to do the same thing on my site.

  7. #27
    Join Date
    May 2016
    Posts
    188
    Plugin Contributions
    0

    Default Re: Adding Text Into The Header

    Quote Originally Posted by dbltoe View Post
    We have completely turned off the logoWrapper in most of our mobile cases. IMHO, adding too much in that area detracts rather than adds to the mix.
    For example, Amazon used to be the barest of websites with little or no images and lots of info. Take a look at today's amazon.com BUT use a developer tool for your browser to Disable Images. What you see is what a Search Engine (SE) would see. They are blind. SEs cannot see images. Only alt text.
    Thus if you are "too big to care", put more images on a page. However, you will get rank with content.
    Content impresses the SEs, the SEs tell potential customers, you put plenty of content AND images on the product page. Win, win, win.
    I have mine positioned where I want it ALMOST. I just need to bring it down a little so in the center of the white space. How would I do this? I tried margin-top and margin-bottom but they ######## up the white space completely.

    http://www.westnewtonsupply.com

  8. #28
    Join Date
    Aug 2013
    Location
    Bridlington
    Posts
    151
    Plugin Contributions
    0

    Default Re: Adding Text Into The Header

    Quote Originally Posted by CSGODeimos View Post
    Crazy that you're from Brid, I'm from Hull but just moved to the US. Didn't expect to see anyone on here from close to home aha. Hope you get your issue fixed as I'm looking to do the same thing on my site.
    Small world LOL and hope you get yours sorted too, there is some clever people here I`m sure someone will help ;)

  9. #29
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,710
    Plugin Contributions
    13

    Default Re: Adding Text Into The Header

    @MCS - Your only hope is to increase the height of the overall area. Right now, there's not enough room to put all the text and their margins together without some weird coding. Also there are a bunch of large margins both negative and positive that are making it very difficult to sort.

    @CSG you give us a link but I don't quite get what you want to change. Can you be more specific.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  10. #30
    Join Date
    Aug 2013
    Location
    Bridlington
    Posts
    151
    Plugin Contributions
    0

    Default Re: Adding Text Into The Header

    Quote Originally Posted by dbltoe View Post
    @MCS - Your only hope is to increase the height of the overall area. Right now, there's not enough room to put all the text and their margins together without some weird coding. Also there are a bunch of large margins both negative and positive that are making it very difficult to sort.
    Ok mate that's fair comment, I like the way it is laid out and I personally think if you make the whole header area bigger it will look rubbish, I`ve tried explaining this to the person involved (My Cousin).

    I already thought the same as you have confirmed that the area would need to be bigger. Where is the setting to do this ?? I tried using firebug and also CSS Viewer but again having limited experience in CSS its confusing.

    Ive looked in the stylesheet.css file, CSS Viewer says that the area is #taglinewrapper ?? The only reference to tagline in the stylesheet.css is ...

    #tagline {margin:0;color:#444;font-size:150%;text-align:left;text-transform:lowercase;clear:both;margin-left:30px;margin-top:15px;}

    There is no mention of height here ???

    You might be smiling right now as what I`ve put in this post might be completely wrong LOL but I`m doing the best I can and trying to learn as I go, forget about the icons below the text, it is how it is, but for my own sanity point me to the header height setting just to put me out of my misery.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. cannot process the adding of the item into the shopping cart
    By wufoxuan in forum General Questions
    Replies: 1
    Last Post: 7 May 2010, 05:26 AM
  2. Adding Text to left side header
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Apr 2010, 09:18 PM
  3. Adding text in header
    By treasureshaven in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Sep 2009, 04:59 PM
  4. Replies: 0
    Last Post: 7 Jan 2009, 05:49 PM
  5. How to get the header search bar into the nav bread crumb?
    By Mister-Norway in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Aug 2008, 01:59 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