Trip Enquiry

Homepage Forums WP Travel Pro Trip Enquiry

This topic contains 9 replies, has 4 voices, and was last updated by  maxbuzz 16 hours, 18 minutes ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #17257

    paulo232
    Participant

    Hi

    How can we make the “Trip Enquiry” in the screenshot http://prntscr.com/o6vq42 into a button and change the wording?

    #17261

    Support Team
    Keymaster

    Hello @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;
    }
    #17270

    paulo232
    Participant

    When we copy the code, it gives syntax errors?

    #17277

    Support Team
    Keymaster

    Hello @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!!

    #17283

    paulo232
    Participant

    Have activated teh previous admin log in so you can check

    #17287

    wensolutions
    Keymaster

    Hello

    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!

    #17288

    paulo232
    Participant

    We took the code out as it crashed the site

    #17294

    Support Team
    Keymaster

    Hello @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.

    #18116

    maxbuzz
    Participant

    Hi,

    Tried the above code but it gives an error on Additional CSS as shown here
    https://tinyurl.com/y2esvp3z

    If you proceed anyway, the button shows up but looks like its overlapped by tripcode.
    https://tinyurl.com/yxpbydfo

    Also on hover, the whole button just becomes red with no text visible, so changed color values after which hover stopped working

    #18118

    maxbuzz
    Participant

    Hi,

    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/yxpu6ot7

    and on hover it looks ugly with 2 different sized and colored buttons overlapping like this
    https://tinyurl.com/y3hmcqtc

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.