Brain Fart...How to code a text input that will output a social icon with redirect to page on click?

by Jordan Hunter Banned
2 replies
Hey everyone!

Fairly simple or not so simple question. It's been a while since I've done so but I'm having a hard time coding a text input field that a user can add their social url into (twitter, facebook, pinterest, etc.) that will output the icon on their wordpress page with the page redirect when they click. How?

HELP!! Pretty please and thank you!
#brain #click #code #farthow #icon #input #output #page #redirect #social #text
  • Profile picture of the author neutralhatter
    that's really a broad question.

    you can do this with a multitude of programming languages.

    infact you need to follow the link. get the html code of the page. either use an xhtml parser if you know it's valid, or either use regular expressions to find the image tag. then once you get the image tag. get the source property (again, either with a parser or regex, or a split function).
    {{ DiscussionBoard.errors[8730614].message }}
    • Profile picture of the author Jordan Hunter
      Banned
      Hi neutralhatter thanks for your reply, I know it was a bit broad and I think I've figured it all out! Your advice sparked a little clarity in my brain fart moment! Thanks again
      {{ DiscussionBoard.errors[8736770].message }}

Trending Topics