Tagged: custom text, Masonry Entries
Hi,
In addition to title being shown in the hover caption in masonry for entries, I’d like to display a little custom text like “click here” and a link to, let’s say, “mylink.com”.
I’ve added this code to masonry_entries.php line 794 (using the “text_after”) as follows:
$this->loop[$key]['text_after'] .= "<a href='http://mylink.com'>click here</a>";
But the page appears all messed up, it’s like it disrupted the way javascript builds up the masonry.
However, when I add text without links, it displays perfectly (except for the fact I’d need the link).
$this->loop[$key]['text_after'] .= "click here";
Is there anything I could do to make it work with a link or am I hopeless?
Thank you very much in advance.
Hi!
That happens because each masonry entry is a link itself – http://screencast.com/t/GoGcysLx2xK
So, even if you manage to put a link there it won’t work because the wrapper link will be on top of that.
Cheers!
Josue