WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Make features images (pages & posts) linkeable (3 posts)

  1. cjrodero
    Member
    Posted 7 months ago #

    Hi!

    How should I make the feature images of pages & posts in Customizr theme with the chance to link somewhere else in the page or even out of it?
    I've been looking around for a solution, but I didn't succeed...
    Would be great to find a kind of clear tutorial which explains it... I'm not an expert in coding.

    Anyone can help?

    Thanks in advance!!

  2. chappie
    Member
    Posted 7 months ago #

    You can link to something on the same page using an anchor.

    In the text editor, preface the target text with an anchor tag, such as:

    <a name="landhere"></a>

    ...where "landhere" can be any name you choose to assign.

    Then, where you want to place the link to your new anchor, wrap the word or phrase with:

    <a href="#landhere">any word</a>

    At the moment, there is no easy way to link a Customizr slider button or menu item to an anchor - although the theme author, @nikeo, has this on his to-do list I believe.

    However, you can link to an anchor from text on another page by putting the full url in the link, eg:

    http://www.mysite.com/mypage/#landhere
  3. cjrodero
    Member
    Posted 7 months ago #

    Thanks for the quick reply, chappie!

    Well.. I'm not sure if this would solve the question.
    What I would like is create a rule for when I will set a feature image (in posts or pages) it would give me the option to link it, as it happens with the other images I insert in the body of the post or page. It's clear that this option is not allowed by default with features images.

    I will try with the Advance Custom Field plugin, and see if I can create that field... But I'm afraid that might not work...

    In the beginning I thought that could have a solution... but it's beeing tough...

    Thanks for your help!

Reply

You must log in to post.

About this Theme

About this Topic