- This topic has 10 replies, 4 voices, and was last updated 4 years, 4 months ago by
Support Team.
-
AuthorPosts
-
June 26, 2019 at 10:53 am #17257
paulo232
ParticipantHi
How can we make the “Trip Enquiry” in the screenshot http://prntscr.com/o6vq42 into a button and change the wording?
June 26, 2019 at 12:40 pm #17261Support Team
KeymasterHello @paulo232,
To change the text add below given code in your child theme functions.php file.
function wp_travel_edit_enquiry_button(){ $btn_txt = 'Your text here'; return $btn_txt; } add_filter('wp_travel_trip_enquiry_popup_link_text','wp_travel_edit_enquiry_button');
For the button add below given CSS.
a#wp-travel-send-enquiries { border: 1px solid #f83531; padding: 10px; color: #fff; background: #f83531; } a#wp-travel-send-enquiries > span: hover { border: 1px solid #df1814; padding: 10px; color: #fff !important; background: #df1814; }
June 26, 2019 at 4:22 pm #17270paulo232
ParticipantWhen we copy the code, it gives syntax errors?
June 27, 2019 at 4:19 am #17277Support Team
KeymasterHello @paulo232,
The code was provided only after testing it on our side.
So make sure you have added the complete code in your child theme functions.php file
As for the CSS, add them either in your child theme’s style.css or directly add them in Additional CSS by going to Aminn Panel > Appearance > Customize > Additional CSS.
We would have added it for you but since you have already disabled the admin access for us we could not do so.
Hope this works out.
If it still does not work then please provide us the admin login through the email so that we will do it for you.
Thank you.
Regards!!
June 27, 2019 at 5:49 am #17283paulo232
ParticipantHave activated teh previous admin log in so you can check
June 27, 2019 at 7:40 am #17287wensolutions
KeymasterHello
Thank you for the access.
When we inspected the admin side in your site, we found that the code that we provided to you for the changes were not present in the file. What we want to make you clear is that, the changes will be there only when the code are placed in the destination files properly.
We have pasted the same snippet in your site and the codes are working perfectly fine.
We try our best to give our users a safe and smooth support experience even if we ask for the access when the access is needed. We have always respected the privacy policy of our users. On the other hand, we will surely help them as much as the support scope allows us to.
Having noted that you want to maintain the privacy of your site with us as well, even for the support assistance, we kindly request you to create a staging site so that we can do our job with some level of flexibility. This will also be helpful to you as even when you have some problem working out with the code that we provide, it won’t affect your working site in any ways.
Hoping for your kind co-operations.
Regards!
June 27, 2019 at 7:43 am #17288paulo232
ParticipantWe took the code out as it crashed the site
June 27, 2019 at 9:55 am #17294Support Team
KeymasterHello @paulo232,
We have pasted the exact code in your child theme functions.php and it worked absolutely fine.
The issue has been solved but please replace the text as per your requirement.
Also, make sure to copy the exact code and paste in the location we mentioned if something similar comes up.
Thank you.
July 19, 2019 at 2:42 pm #18116maxbuzz
ParticipantHi,
Tried the above code but it gives an error on Additional CSS as shown here
https://tinyurl.com/y2esvp3zIf you proceed anyway, the button shows up but looks like its overlapped by tripcode.
https://tinyurl.com/yxpbydfoAlso on hover, the whole button just becomes red with no text visible, so changed color values after which hover stopped working
July 19, 2019 at 3:06 pm #18118maxbuzz
ParticipantHi,
I tried copying the code in again, realised there were some ‘spaces’ extra and the error went of.
But its still far from flawless, in normal mode the button looks overlapped by the trip code like this https://tinyurl.com/yxpu6ot7and on hover it looks ugly with 2 different sized and colored buttons overlapping like this
https://tinyurl.com/y3hmcqtcJuly 22, 2019 at 5:37 am #18152Support Team
KeymasterHello @maxbuzz,
To fix the issue we need to inspect the URL precisely and then only we can provide the fix.
So let us know once your site goes live.
Thank you.
-
AuthorPosts
- The forum ‘WP Travel Pro’ is closed to new topics and replies.