Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter BillyTziv

    (@billytziv)

    Hello, sorry for the topic. If you want delete it. I installed it and it is fine. For some reason I remove it by hand without even notice it… worst thing ever.

    Thread Starter BillyTziv

    (@billytziv)

    Hey @wfpeter . Thanks for the reply.

    I am using a plugin to insert the google code. I just find out that for some reason, Wordfence or “me” remove the code… which kinda make sense for not getting results. Is there any option that I should set in Wordfence to allow google bots?

    Many thanks!

    Thread Starter BillyTziv

    (@billytziv)

    Is there any other reliable website so I could test my website?

    Thread Starter BillyTziv

    (@billytziv)

    https://www.citystage.gr/ this is the website. This is the result from gmetrix https://gtmetrix.com/reports/www.citystage.gr/mbTHia4I

    Thread Starter BillyTziv

    (@billytziv)

    Let me post a block of code I found. This code is in the class.traveler.php file. My theme name is traveler. I believe this loads all the files.

                if(st_check_service_available('st_tours'))
                {
                    self::load_libs(['models/st_tour_availability','class/class.tour','helpers/tour.helper',]);
                }
    

    Does this help?

    Thread Starter BillyTziv

    (@billytziv)

    Great. Let me try help a bit. (I hope…)

    I got a file named class.tour.php where there is actually a check at the beginning of the file if the class exists and if not this file declares a class with all of its function. At the end it creates an instance.

        if ( !class_exists( 'STTour' ) ) {
            class STTour extends TravelerObject
            {
         static    $_inst;
                protected $post_type = "st_tours";
                protected $orderby;
                /**
                 * @var string
                 * @since 1.1.7
                 */
                protected $template_folder = 'tours';
    
                function __construct( $tours_id = false )
                {
                    $this->orderby = [
                        'new'        => [ .....
    

    And here is the end of the file:

                static function get_price_type($id = null){
                    if(empty($id))
                        $id = get_the_ID();
    
                    $price_type = get_post_meta($id, 'tour_price_by', true);
    	            if(empty($price_type)){
    		            $price_type = 'person';
    	            }
    	            return $price_type;
                }
    
            }
    
            st()->tour = STTour::get_instance();
            st()->tour->init();
        }
    
    Thread Starter BillyTziv

    (@billytziv)

    Thank you for the response. My functions.php file is

    <?php
    /*
     * Functions file
     * Calls all other required files
     * PLEASE DO NOT EDIT THIS FILE IN ANY WAY
     *
     * @package parabola
     */
    
    // variable for theme version
    define ("PARABOLA_VERSION","1.3.4");
    
    require_once(dirname(__FILE__) . "/admin/main.php"); // Load necessary admin files
    
    //Loading include files
    require_once(dirname(__FILE__) . "/includes/theme-setup.php");     // Setup and init theme
    require_once(dirname(__FILE__) . "/includes/theme-styles.php");    // Register and enqeue css styles and scripts
    require_once(dirname(__FILE__) . "/includes/theme-loop.php");      // Loop functions
    require_once(dirname(__FILE__) . "/includes/theme-meta.php");      // Meta functions
    require_once(dirname(__FILE__) . "/includes/theme-frontpage.php"); // Frontpage styling
    require_once(dirname(__FILE__) . "/includes/theme-comments.php");  // Comment functions
    require_once(dirname(__FILE__) . "/includes/theme-functions.php"); // Misc functions
    require_once(dirname(__FILE__) . "/includes/theme-hooks.php");     // Hooks
    
    ?>

    um should i append the file with your code? Also as I see there according to my programming skills you made a function. Where and how would I call this function? I am newbie on this and I dont really know where should I add code… I am sorry for this kind of questions…

    regards, Billy

    Forum: Fixing WordPress
    In reply to: Edit Source Code
    Thread Starter BillyTziv

    (@billytziv)

    Oh they are different…i thought it was the ‘same’ sorry for posting here. 😐

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