Theme customizations

Homepage Forums Travel Log Theme customizations

This topic contains 7 replies, has 3 voices, and was last updated by  Support Team 1 year, 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7751

    kenbong
    Participant

    Dear Support Team,

    I just switched to Travel Log theme and loving it so far!

    I would appreciate it if you could help with a few minor customisations as below:

    1. Is it possible to create a sticky menu?
    2. How do I remove the date / Author / and posted in each post?
    3a. In the trip page, is it possible to change from RM1234 / person to From RM1234 / person (adding the word ‘From’),
    3b. Is it also possible to add the word ‘From’ in the post filter section thumbnail?
    4. Is it possible to change the mobile view hamburger icon (on top right corner) color?
    5. How do I remove the (…) from CTA section?
    6. Is it possible to not show header pictures in the individual trips page?

    I look forward to your advise

    Thanks!
    Ken

    #7752

    Support Team
    Keymaster

    Hello @kenbong,

    First of all thank you very much for using the plugin and the theme.

    Now please find the answer to your query below:

    1. Is it possible to create a sticky menu?

    Response: Currently there is no such feature in the theme but the feature will be available in the pro version which is currently under development.

    2. How do I remove the date / Author / and posted in each post?

    Response: To remove date / Author / and posted in each post please add below given CSS.

    For this go to Admin Panel > Appearance > Customize > Additional CSS and paste the CSS.

    .entry-header .entry-meta .posted-on {
        display: none;
    }
    
    .custom-header span.author.vcard {
        display: none;
    }
    
    .entry-footer span.cat-links {
        display: none;
    }

    3a. In the trip page, is it possible to change from RM1234 / person to From RM1234 / person (adding the word ‘From’),

    Response: To change the this you have to activate the child theme.

    To know how to activate the child theme please refer to below given link:

    http://wptravel.io/how-to-create-a-child-theme/

    After creating the child theme please add below given code in your child theme functions.php file.

    https://pastebin.com/nVQ6ZZ76

    3b. Is it also possible to add the word ‘From’ in the post filter section thumbnail?

    Response: For this at first create the folder “template-parts”. Inside this folder create folder “wp-travel” and inside “wp-travel” create the file “itinerary-item.php”.

    Now paste below given code in the file “itinerary-item.php”

    https://pastebin.com/MrjqUHBd

    Finally go to Admin Panel > Appearance > Customize > Additonal CSS and paste the CSS.

    .trip-details .trip-price i {
    	color: #fff;
    }

    4. Is it possible to change the mobile view hamburger icon (on top right corner) color?

    Response: For this add below given CSS.

    #simple-menu i {
    	background-color: #6c6cbb !important;
    	border-color: #6c6cbb !important;
    }

    Change the color code as per your requirement.

    5. How do I remove the (…) from CTA section?

    Response: For this add below given code in your child theme functions.php file.

    
    	function travel_log_customize($more){
    
    	   return'';
    	}
    	add_filter('travel_log_cta_more_text','travel_log_customize');

    6. Is it possible to not show header pictures in the individual trips page?

    Response: Yes the theme has already provided the option for this. Just go to the individual page edit screen. There you will find ” Header Image Option” at the button of the page. Now uncheck the option “Check to use featured image as banner image” and update.

    http://prntscr.com/kigbzk

    Hope this helps.

    Regards!!

    #7754

    kenbong
    Participant

    Dear Support Team,

    Thank you for your swift reply!

    I think I need some additional assistance:

    1. Noted with thanks! Looking forward to the pro version

    2. Awesome! The code provided has managed to removed all elements except the author name, this is the link: http://www.marinediscoveryholidays.com/category/current-promotion/

    3a. I have tried the method given (I’m currently already on a child theme but it’s not working). Here is the screenshot: https://prnt.sc/kiipx0 (It still only shows RM1788 / person instead of From RM1788 / person) Link: http://www.marinediscoveryholidays.com/itinerary/bangkok-hua-hinwith-maeklong-railway-market/

    3b. Thanks! Will get to it after I solve item 3a

    4. Solved! Thank you so much!

    5. Solved! Thank you so much!

    6. For normal pages yes we do get this option, however I don’t see the option for when we create a trip via the WP Travel plugin. Here is the screenshot: https://prnt.sc/kiisfj and here is the link: http://www.marinediscoveryholidays.com/itinerary/bangkok-hua-hinwith-maeklong-railway-market/

    I look forward to your reply!

    Thanks!
    Ken

    #7756

    Support Team
    Keymaster

    Hello @kenbong,

    It’s always a pleasure helping you guys and we are very glad that some of your requirement has been addressed.

    Now please find the answer to your queries below:

    2. Awesome! The code provided has managed to removed all elements except the author name, this is the link:

    Response: Please replace the code mentioned below with the later block of code.

    .custom-header span.author.vcard {
        display: none;
    }

    Replace with:

    span.author.vcard {
        display: none !important;
    }

    3a. I have tried the method given (I’m currently already on a child theme but it’s not working).

    Response: Replace the code provided above with the code given below:

    https://pastebin.com/d8w6KHYT

    For normal pages yes we do get this option, however I don’t see the option for when we create a trip via the WP Travel plugin.

    Response: Please add below given code to remove the header image in trips page as well.

    .custom-header {
        background-image: none;
    }

    Hope this helps.

    Regards!!

    #7769

    kenbong
    Participant

    Dear Support Team,

    Thank you so much! Everything worked perfectly!

    Another question – Is it possible for me to remove the text “Proudly powered by WordPress | Travel log by Wen Solutions” if I were to purchase WP utilities?

    If possible, please advise how do I proceed

    Thanks!
    Ken

    #7781

    WP Travel Admin
    Keymaster

    Hello @kenbong,

    Glad to help you 🙂 .

    Also for your query (3a. I have tried the method given (I’m currently already on a child theme but it’s not working).), please replace the code that we have provided before with the code given below.

    function wp_travel_customize_sale_price_display( $s, $c, $d ) {
      return sprintf( esc_html__(' From %1s %2s', 'wp-travel' ),  $c , number_format( $d , 2 ) );
    }
    add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );
    
    function wp_travel_customize_price_display( $s, $c, $d ) {
      global $wp_travel_itinerary;
      if ( $wp_travel_itinerary && $wp_travel_itinerary->is_sale_enabled() ) {
         return  sprintf( esc_html__(' From %1s %2s', 'wp-travel' ), $c , number_format( $d , 2 ) );
        // return $s;
      }
      return sprintf( esc_html__(' From %1s %2s', 'wp-travel' ),  $c , number_format( $d , 2 ) );
    }
    add_filter( 'wp_travel_itinerary_price', 'wp_travel_customize_price_display', 99, 3 );

    It is because when we tested the previous code with one of our addon, it raises some error. Hope you understand.

    Now as for the footer “Powered by text” it is actually not controlled from the plugin. The text comes from the theme and the good news for you is, a addon for the theme is releasing very soon which includes the feature to edit the footer “powered by text”. As soon as the update is out we will let you know.

    Also, WP Travel utilties is an amazing addon to WP travel plugin which addresses lots of features that is not available in the free version of the WP travel plugin.

    So if you wish then please have a look into the below given link to find out what WP Travel utilities has to offe.

    http://wptravel.io/downloads/wp-travel-utilities/

    Regards!!

    #7782

    kenbong
    Participant

    Dear Support Team,

    Awesome, this worked! The only thing is that it’s showing number format as RM1788.00 instead of RM1788. I have tried changing all of these lines:
    number_format( $d , 2 )
    to
    number_format( $d , 0 )

    and it’s displaying fine without the decimal points now, will that cause any unwanted errors in the future or is it ok for me to leave it as per?

    Thanks again!
    Ken

    #7784

    Support Team
    Keymaster

    Hello @kenbong,

    No, it will not generate any issues. It will work absolutely fine.

    Further, for any issues, we are right here for you 🙂 .

    Also, we would really appreciate if you could help us by rating our plugin by following the link given below:

    https://wordpress.org/support/plugin/wp-travel/reviews/

    Thank you.

    Regards!!

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

You must be logged in to reply to this topic.