How would I modify the Feedback Button (I use the Choices template) to link to another page (instead of the contact page) or peform another function such as opening an embedded shopping cart?
Modifying the Feedback Button
3 posts from 2 voices-
Posted 3 months ago #
-
Search for following code line in header.php:
if($feedback_button && $contact_page) echo "<span class='feedback_button_wrap'><a href='".get_permalink($contact_page)."' title='$feedback_button' class='feedback_button' >$feedback_button</a></span>";You can replace the $contact_page variable with any other page id - eg if your page has the id 5 use following code:
if($feedback_button) echo "<span class='feedback_button_wrap'><a href='".get_permalink(5)."' title='$feedback_button' class='feedback_button' >$feedback_button</a></span>";If you'd like to link to an external website, etc. replace the get_permalink function with your custom url (i.e the example code below will link to google.com):
if($feedback_button) echo "<span class='feedback_button_wrap'><a href='http://google.com' title='$feedback_button' class='feedback_button' >$feedback_button</a></span>";Posted 3 months ago # -
Thanks Dude. Seems simple enough!
Posted 3 months ago #
Topic Closed
This topic has been closed to new replies.














