WordPress.org

Ready to get started?Download WordPress

Forums

How to add a link within our header? (3 posts)

  1. robertbeth
    Member
    Posted 2 years ago #

    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.

  2. robertbeth
    Member
    Posted 2 years ago #

    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: http://www.heathwoodpress.com

    <div id="navbar">
    
    <ul>
                                    <li class="VIEW CART"><a href="http://www.heathwoodpress.com/bookshop/shopping-cart/">VIEW CART</a>
                            </ul>
                       </div>
  3. robertbeth
    Member
    Posted 2 years ago #

    Anyone?-

    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: http://wordpress.org/support/topic/adding-links-to-the-header?replies=7

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

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.