Support » Fixing WordPress » How to add a link within our header?

  • Hello-

    We would like to add a link button within our header, which redirects to the cart page of our site(i.e., a ‘view cart’ button).

    We are using the twenty-eleven theme. We have already removed the default search box from the header and we’re basically trying to add a cart link in its place.

    We’ve looked everywhere for information on how to do this and to no avail. Can someone help, please.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is the basic code that we are using in the header.php file.
    The problem is we’re not quite sure where to put it, nor how to get the link to align in the bottom-right hand corner of the space above the header image (ie – the default location of the search bar in twenty eleven). Do we need to add anything to the CSS to fix the position/alignment?

    Our site is:

    <div id="navbar">
                                    <li class="VIEW CART"><a href="">VIEW CART</a>


    I tried applying the above code in all sorts of areas in the header.php file; but the closest I can get the link to actually being in the header is in a position where the ‘view cart’ button is half hidden by the header image.

    I also reviewed this post last night and applied slight alterations to the code:

    …but to no avail. Any help would be so greatly appreciated.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add a link within our header?’ is closed to new replies.