• Resolved miguelitolaparra

    (@miguelitolaparra)


    Hello, my question this time is regarding its latest update.
    What files have been modified?

    I had modified the following file: public_html / wp-content / plugins / wp-hotel-booking / templates / search / list.php
    This I did to get a functionality that required for my website and the plugin did not provide me.
    Well, everything worked perfectly until it was updated.
    The file public_html / wp-content / plugins / wp-hotel-booking / templates / search / list.php changed and the changes that it had echos were broken.
    Can I change this file again, or will I have problems whenever they update?
    I have spent money to modify this file and now I am like at the beginning, for its update.
    You can give me some idea of ??how to solve this.
    Without a doubt, it must be the one who helped me with this, that he should help me, but I wanted to know his opinion about it.
    ?I await your response to take the appropriate steps to correct the error.
    Thanks for the support.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Every time the plugin updates, it always replaces the files in the plugins folder, so it is not advisable to directly edit it in the plugin folder. However, the way you should be doing it is with a template override. In your child theme folder (/wp-content/themes/hotel-wp-child/) create a folder structure like the hotel wp plugin. So create a folder named wp-hotel-booking. Then you will create your /templates / search directory also. Then finally, create your list.php in this folder. The plugin will know that you have an overriden template, and will use that instead of the one from the theme. Therefore, when you update the plugin, it will no longer overwrite your changes. Hope this helps. So assuming you are using the hotel wp child theme, the full path to your override will be (/wp-content/themes/hotel-wp-child/wp-hotel-booking/templates/search/list.php)

    Hopefully you are backing up your website regularly. If so, just restore a backup somewhere else and get your list.php file back. If you are not doing backups, then you should start.

    • This reply was modified 5 years, 10 months ago by 121940kz.
    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks for the reply.
    Unfortunately I am not working on a son theme.
    I started very fast to work in WordPress without studying some of the details, such as “a son theme”
    I do not know if I will be able to create a child theme as you have explained to me, because I do not speak English, and when using the google translator, sometimes it does not interpret what one tries to express.
    Can I still do a theme-child?
    Another thing I have to say is that my theme is HOWELLO, WP Hotel Booking is the plugin that manages my reservations.
    I will find a way to correct this error.
    Luckily, before updating any plugin, I make backup copies, so I could solve the problem, but I must fix it in such a way that I can make updates.
    Thank you.
    If you come up with an idea that you can share with me, I will be very grateful, since my experience in WordPress is scarce.
    Thanks for the support provided.

    Well, whatever theme you are using, (in my case i am using the hotel-wp wordpress theme), but it doesn’t really matter what theme you are using. You should install the child to that theme. Usually your theme will come with the parent theme (the main theme) and then a child theme. The purpose of the child theme, is so that any customization you make, are not lost when you update the main theme. Because when your main theme updates, you will lose any customization you made. So first, i would recommend you check with your current theme provider, that you can install and activate the child theme.

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks again.
    I will try to solve it.
    Thanks for the support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What was modified in the last update of WP Hotel Booking?’ is closed to new replies.