• [ Moderator note: moved to Fixing WordPress. Please do not use Developing With WordPress for these topics. ]

    On my www.remarpro.com site I have a free quote button/image under every product we carry (1000’s+), I need it to link to our contact us page. Is there any way to do this besides doing each button/image individually?

    • This topic was modified 7 years, 10 months ago by kyvetteh.
    • This topic was modified 7 years, 10 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • If each button was manually placed in for say Pages section. Then best bet would be to get an editor who has replace function. You can select the image tag and then replace it with a link around it.

    If it is done by WordPress. There is a most likely easy way with editing plugin/theme templates.

    Moderator bcworkz

    (@bcworkz)

    Depending on what that button currently does, you could possibly redirect it’s current request to your contact page, either by .htaccess rules, the Rewrite API, pre_get_posts action, or a refresh meta tag on the current page.

    If the data to change is in post content, a custom one time use script could go through all posts and change the target anywhere it’s found, either by PHP or SQL query.

    GhostPengy’s suggestions are perfectly reasonable as well. You’ve plenty of options!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I know how to link a custom url to an image, BUT how do I’ is closed to new replies.