Jump to content

Archived

This topic is now archived and is closed to further replies.

hibbsy78

Media Box Image Link

Recommended Posts

hibbsy78

I am trying to make image in the media box hyperlinks (new window) but cant seem to action it!

 

The page is http://padma.hibbsco.biz/menus/ and the media box images are the 'best of cannock' & 'just eat'.

 

I have tried adding the following to Text and Embed HTML box but to now effect.

<a href="url here" target="_blank">text here</a>

Can some one please help!!

Share this post


Link to post
Share on other sites
Simon
<a title="Best Of Cannock" target="_blank" href="url_here"><img alt="Best Of Cannock" src="http://padma.hibbsco.biz/wp-content/uploads/2014/09/BestOfCannockFeature.jpg" /></a>

Share this post


Link to post
Share on other sites
hibbsy78

Argh thank you Simon_P!

Share this post


Link to post
Share on other sites
FRevi

I'm trying to do almost the same thing, but it didn't quite work for me. 

 

I have a header. In the header I have one media box and nothing else.

 

In the media box I have one image and nothing else. I want this image linked to the site home page, to open in the same tab.

 

When I put into the Text and Embed HTML box:

 

   <a href="[pl_site_url]"><img src="[pl_site_url]/wp-content/uploads/2014/08/header_1280x601.png" /></a>

 

...the page reloads with two images. One of them is a link, the other not. The link does bring up the intended page.

 

It doesn't seem to matter if I use the literal string "[pl_site_url]" or the actual URL to which it refers.

 

thx for advice.

[attachment=2475:beforeTxtHTML.jpg][attachment=2474:afterTxtHTML.jpg]


Ⅎʀ

Share this post


Link to post
Share on other sites
Danny

I have just this moment added your code with one minor change to the image path and the code works without any issue. I do not get a double image of any kind.

If this is still occurring, can you view your code in Chrome Dev Tools or provide a link to the site in question with the error active so we can see for ourselves.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • jeomiland
      By jeomiland+
      Please refer to cassclayton.com/dev
      Need to place the 2 media boxes (that contain the ragged dark background for Playlist of month and Song suggestion) right under the content above that. Have a basic 2-column format for the page with sidebar widgets in narrow column to right and main content in large area left column. When I try to drag another 2-col section just under the other content, instead of what I want, a new canvas section (?) is formed into which the new 2-col is placed and this gets placed AFTER all that stuff in the narrow right column!
      How does one create a format where you can have multiple columns inside a column?
      I can perhaps do this manually with DIVs and float: left CSS, but that will make it very clumbsy for client then to update that content.
      Appreciate your insights, thanks
      JE
      Oh, also I have to drag out a 2-col twice before one of them stays on refresh (see post from the other day "2-colums inside other column - disappears on refresh? CSS not saving on refresh" - still waiting for reply on that.)
×