Michel

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: My page is not looking the same in english and french #1228134
    Michel
    Participant

    This reply is private.

    Michel
    Participant

    Hi Hunter,

    Thanks for your answer.

    I found where the problem comes from.

    When I start working with Event Calendar, I ask to AVADA to help me to add a slider at the top of my filter bar page like my other website pages.

    They gave me a piece of code to put in my functions.php, which I did and everything was great. I just don’t when these errors started now.

    If I remove it from my functions.php there is no errors anymore, but I lose my slider

    Here is the code:

    function add_event_slider() {
    if(is_archive( ‘tribe_events’ )){
    if(ICL_LANGUAGE_CODE == “fr”){
    // Slider for French event archives
    echo do_shortcode(‘[fusion_fusionslider name=”ateliers-photo-destinations-a-venir” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” id=”” /]’);

    }else{
    // Slider for English event archives
    $queried_object = get_queried_object();

    if($queried_object->name == “”){
    echo do_shortcode(‘[fusion_fusionslider name=”upcomingphotoworkshopdestinations” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” id=”” /]’);
    }else{
    echo do_shortcode(‘[fusion_fusionslider name=”upcomingphotoworkshopdestinations” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” id=”” /]’);
    }
    }
    }
    }
    add_action( ‘avada_before_main’, ‘add_event_slider’, 99 );

    I hope that will help you to see what is going wrong with the code.

    Also, If you go on the filter bar page: https://adventuresroom.com/destinations/

    You will see a sidebar and it is not there in my french version. It appeared when I upgrade to AVADA 5. I just don’t want it and can’t find a way to remove it.

    Can you help me with that too?

    Thanks

    Michel

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