Jump to content
Sign in to follow this  
stuartnolan

hyperlink from Feature to Box or Banner

Recommended Posts

stuartnolan

Hello, I'm new to PlatformPro so forgive me if this is a dozy question. I'm making a features page and I want to link from each Feature directly to either a Box or a Banner that will provide more information on each Feature. So I'm making a Features page with 10 Features and a Banner page with 10 matching Banners. But I cant figure out how to link directly to each Banner. Can you help? Stuart

Share this post


Link to post
Share on other sites
stuartnolan

Just to clarify with some more detail. I can now make this work in a clumsy way using anchors (I'd be better if I could point to the page and the banner name) but if I add an anchor to the Banner title I get an interesting bug when I then add an image. If I use the following in the Banner title `hello piggy` Then my image has the following text written next to it hello piggy" /> Here's a link to an image so you can see how this looks.. bannerbug Any ideas? s

Share this post


Link to post
Share on other sites
Kate

@Stuart It looks like a missing end bracket or quote (etc.). Can you copy/paste the code for that section? Also, as an alternative, you may be able to accomplish what you're trying to do with some PHP. Essentially you'd need to assign a unique ID to each banner you output. Then you can use something like this to link to each one: `Link to my banner` Make sense?

Share this post


Link to post
Share on other sites
stuartnolan

Hi Kate, Thanks for your help. I wouldn't know where to find the code I'm afraid, I'm new to Platform so I've not gone any where near the code yet. I understand your idea of giving each Banner or Box a uniqueID but don't know where to do that. I'll have a look around. By the way, the bug doesn't happen if I use anchors with Box titles so I'll probably do that for now. s

Share this post


Link to post
Share on other sites
cmunns

If it's a bug it is likely a WP thing as adding HTML to the post titles is not common practice, especially links because it already handles this on its own.

Share this post


Link to post
Share on other sites
stuartnolan

Thanks Adam. I assume that means that as links to posts are already handled, and Boxes and Banners are posts of a kind, then the links I need should already exist somewhere? s

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×