• Anna

    (@til_annahotmailcom)


    Hi!

    I want to link to my homepage and blog in the header of my site, so I added the code below (just filling in the URL and name of link) to my header.php. The links shows were I want them to, but how do I edit the font-size, color and so on?

    <ul><div class="avdelingermeny">
            <a href="URL 1"> NAME OF URL 1</a> |
         <a href="URL 2"> NAME OF URL 2</a> |
    <a href="URL 3"> NAME OF URL 3</a> |
    <ul> </div></ul>
Viewing 4 replies - 1 through 4 (of 4 total)
  • i’m having the same problem-ish. i’m trying to put a telephone number in the header of my site between the company name and the search box. any ideas? https://baker.npocrisis.com/ Thanks!

    Anna – either find the class that gives you the style you want, and replace “avdelingermeny” or add a class to the “a” tag, or both.
    dgr30 – that’s a bit of a different issue so you may be better off starting a new question.

    Thread Starter Anna

    (@til_annahotmailcom)

    Okei, so I changed the code in header.php to

    <ul><div>
            <a class="avdelingermeny" href="URL 1"> NAME OF URL 1</a> |
         <a class="avdelingermeny" href="URL 2"> NAME OF URL 2</a> |
    <a class="avdelingermeny" href="URL 3"> NAME OF URL 3</a> |
    <ul> </div></ul>

    What should I write in my style.css to be able to edit the look of the links? I have tried several things but whitout success.

    It depends how you want them to look. If you want them to look like the regular site navigation, replace avdelingermeny with the class used for that. If you want them to look different, you need to learn some css.
    https://www.w3schools.com/css/css_link.asp

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom links in header’ is closed to new replies.