• j05hn

    (@j05hn)


    Hey so I’m new at this. I’ve created a linkedIn but and it directs me to the top of the page when clicked on. how do I make it go to my linkedIn page? I’m guessing I have to insert the http link somewhere in the CSS just not sure where.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Amado.Miami

    (@amadomiami)

    If its a menu item then “menus” in “Appearances”.
    If part of the theme you are using then check the “theme options”

    Evan Herman

    (@eherman24)

    If you literally have a button (<button></button>) then you simply need to wrap it in an anchor tag.

    Example:

    <a href="http://www.google.com" target="_blank">
       <button type="button">My Cool Button</button>
    </a>

    the <a> lets the parser know that this is an anchor (or link). The href attribute dictates what page it should lead you to. and target=”_blank” lets the browser know to open this link up in a new tab.

    Hopefully that helps.

    Tip: You can also wrap images, and text in the <a></a> tags to make them into links.

    Thread Starter j05hn

    (@j05hn)

    Ok so I tried your suggestion Evan and I ended up getting this at the bottom of my page

    “Parse error: syntax error, unexpected ‘class’ (T_CLASS) in /home/j05h/public_html/wp-content/themes/link/sidebar-pagebottom.php on line 37”

    This is the css area that I attempted to change. I changed it back but the parse error still shows

    .'<div class=”col-md-4 bg-darkblue padding-top-bottom”>
    <h4 class=”ml”>LINKEDIN</h4>
    <p class=”centered aligncenter”><i class=”fa fa-LinkedIn icon-lg”></i></p>
    <p class=”ml”>> Connect With Me</p>

    Thread Starter j05hn

    (@j05hn)

    sorry figured out the error but stil can’t get it to link
    here is the css i’m working with. Basically its a blue square with the LinkedIn icon. when clicked it sends me to the top of the page.

    .'<div class=”col-md-4 bg-darkblue padding-top-bottom”>
    <h4 class=”ml”>LINKEDIN</h4>
    <p class=”centered aligncenter”><i class=”fa fa-linkedin icon-lg”></i></p>
    <p class=”ml”>> Connect With Me</p>
    </div>’

    Thread Starter j05hn

    (@j05hn)

    Nvm I got it thanks everyone!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Making a button go to a link’ is closed to new replies.