Add a link to Selfie Home Block

Support Area Forums Selfie Add a link to Selfie Home Block

This topic contains 1 reply, has 2 voices, and was last updated by  Bill Robbins 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://monaco.josephmedawar.com
  • Author
    Posts
  • #33432

    Joseph Jaramillo
    Participant

    Hey Bill, how might I get the home blocks to link to an external page when you click on either the whole block or a section of the block?

    #33438

    Bill Robbins
    Keymaster

    Hi Joseph,

    You can do that. What you’ll want to do is insert a link like this into the content area of your home block. Use the text side of the editor instead of the visual one so that WordPress doesn’t filter out the HTML. Here’s the link:

    
    <a href="http://yourlink.com" target="_blank" class="block-link">Link</a>
    

    Just replace the http://yourlink.com with the URL you’d like to link to. Change “Link” to the name of the site or something about it. After that update your home block.

    Then to make it the full size of the home block and hide the text, do this:

    1. Go to your theme options page and choose the Advanced tab.
    2. Scroll down to the Custom CSS box and add this:
      
      a.block-link {
      	position: absolute;
      	top: 0;
      	left: 0;
      	right: 0;
      	bottom: 0;
      	text-indent: -9999px;
      }
      
    3. Update your settings.

    Hope that helps out,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Add a link to Selfie Home Block’ is closed to new replies.