WordPress.org

Ready to get started?Download WordPress

Forums

Adding html link? (14 posts)

  1. wowlighting
    Member
    Posted 8 years ago #

    Apologies if this question has been asked lots! I have looked at existing documentation but can't find an answer to my question that I can understand!

    How do I add a link to my main website to my blog main page?

    All I want is to add, preferably to the header, a link to my main site.

    All help gratefully received.

    Bill

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Where is your blog - that will get you your answer.

  3. wowlighting
    Member
    Posted 8 years ago #

    I don't understand the reply "where is your blog - that will get you your answer"!

    What does it mean?

    Can anyone point me at a simple (idiot!) guide to adding a link to the blog main page?

  4. moshu
    Member
    Posted 8 years ago #

    No, nobody can point you at an "idiot" guide... since we don't know what theme are you using, and we cannot see the source code of your site to advise you what to do.

  5. wowlighting
    Member
    Posted 8 years ago #

    AH! Now I understand! I thought there might be a standard method.....

    My blog page is....

    http://wowlighting.co.uk/lightingblog/

    Thanks.

  6. moshu
    Member
    Posted 8 years ago #

    So, do I understand well that you'd like a link pointing to your main site (I suppose the one linked by your name here) and the link should be - preferably - in the header of the blog.
    In this theme you should open the header.php file and try adding it in the `<div id="header"> section. You'll probably have to modify the css file, too, in order to get the link positioned/styled as you want.

  7. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Alternatively, you could check out some other themes that you might find easier to use:
    http://themes.wordpress.net/

  8. wowlighting
    Member
    Posted 8 years ago #

    Another easier theme seems like a good way to go. Thanks. Any suggestions as to a theme that lets me do what I want?

  9. Mark (podz)
    Support Maven
    Posted 8 years ago #

    You could always pick a theme that already has a horizontal navigation bar just under the header. While this is not actually in the header it is prominent and allows you to add further links in that area very easily should you wish to.

    A couple of theme spring to mind:
    Gemini Colored:
    http://www.geeksmakemehot.com/themes/
    Spiderman: http://themes.wordpress.net/?view_type=slideshow&item_type=random&page_number=224&count_per_page=12
    Sublimenal:
    http://themes.wordpress.net/?view_type=slideshow&item_type=random&page_number=237&count_per_page=12

    Colors are easily altered :)

  10. wowlighting
    Member
    Posted 8 years ago #

    Many thanks for the links to the themes. There are several that look good for my needs. Unfortunately I cannot see how to customise them so that I can add my own links. Am I missing something obvious?

  11. Mark (podz)
    Support Maven
    Posted 8 years ago #

    If we take one of the Gemini Colored.
    In header.php is this set of lines:
    <ul id="navlist">
    <li><a href="#">Link 1</a></li>
    <li><a href="#">Link 2</a></li>
    <li><a href="#">Link 3</a></li>
    <li><a href="#">Link 4</a></li>
    <li><a href="#">Link 5</a></li>
    </ul>

    So it's just a case of copy/paste what you want:
    <ul id="navlist">
    <li><a href="http://www.wowlighting.co.uk/">Main Site</a></li>
    <li><a href="http://www.wowlighting.co.uk/gallery">The Gallery</a></li>
    <li><a href="http://www.wowlighting.co.uk/facts">Lighting Facts</a></li>
    </ul>

    etc.......
    I would imagine most theme will have the same sort of code either at the bottom of header.php or the top of the main template.

  12. wowlighting
    Member
    Posted 8 years ago #

    Can't thank you enough for walking a novice through this. It is greatly appreciated.

  13. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Post back if you hit any problems :)

  14. wowlighting
    Member
    Posted 8 years ago #

    PS: Just made the changes you suggested and it worked perfectly. Looks great. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags