Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1113492
    kludrik
    Participant

    I have tried your advise in this forum on how to put a revslider via shortcode in topbar on ALL pages, but I only get this crash:

    Parse error: syntax error, unexpected ‘<‘ in /home/isbjornis/public_html/wp-content/themes/x-child/framework/views/global/_slider-above.php on line 48

    This is what I do (according to advice on similar topic here in this forum):
    changing code in: x-child/framework/views/global/_slider_above.php

    by making the code in the end of file to look like this:

    <?php echo do_shortcode( x_get_slider_shortcode( $slider ) ); <?php echo do_shortcode( x_get_slider_shortcode( $slider ) ); if ( is_single() ) {
    echo do_shortcode(‘[rev_slider topbarslider01]’); // change the shortcode here
    } ?>

    </div>

    <?php endif;

    endif;

    What do I do wrong?

    #1113503
    Christopher
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1113574
    kludrik
    Participant
    This reply has been marked as private.
    #1113617
    kludrik
    Participant
    This reply has been marked as private.
    #1113619
    Paul R
    Moderator

    Hi,

    Please update your theme and plugins(revslider,cornerstone..etc) tolatest version.

    Latest version numbers as of this are: https://community.theme.co/kb/version-compatibility/

    After that, remove your _slider_above.php file in x-child/framework/views/global/

    Then add this in your child theme’s functions.php file.

    
    function add_slider(){ 
         echo do_shortcode('[rev_slider alias="agency-home"]');  
    }
    add_action('x_after_view_global__slider-above', 'add_slider');
    

    Change agency-home with your slider alias.

    http://screencast.com/t/Pe36kLd6W7Rt

    Hope that helps

    #1113718
    kludrik
    Participant

    Thank you! It worked fine. It makes it possible to change the text and info on 52 pages at once, if neccesary! Superb!

    #1113761
    Joao
    Moderator

    Hi There,

    Would you mind clarifying what text you are referring to?

    Thanks

    Joao

    #1114022
    kludrik
    Participant

    I am referring to the text inside the revslider. Thats ok and fine.

    However a new problem has followed after I did this, and I am not sure if there is a connection, but i am afraid it is. I can no longer open the site by writing isbjornis.no, neither can I log in anymore.

    I get a message that there is too many redirections? I can get to the first page by writing http://46.226.13.187/~isbjornis but when I try to log in I am redirected to isbjornis.no/wp-admin and get nowhere.

    Is this due to this change in “function.php” ?

    #1114144
    Rupok
    Member

    Hi there,

    I can see the site with http://isbjornis.no/ and login working as well. Did you change anything? If not then just clear your cache and try again.

    Thanks!

    #1114451
    kludrik
    Participant

    Its both on mobile and and my laptop. I get this message:

    The isbjornis.no page isn’t working

    isbjornis.no redirected you too many times.
    Try:
    Reloading the page
    Clearing your cookies
    ERR_TOO_MANY_REDIRECTS

    How can I fix this?

    #1114503
    kludrik
    Participant

    Seems to be a inhouse local router problem. Thank you for your good help ! 🙂

    Thanks!

    #1114635
    Jade
    Moderator

    You’re most welcome.

    #1118681
    kludrik
    Participant

    The revslider above masthead now works fine global on all pages, but the client want it to be fixed in top position so that it is still visible when you scroll down the page.

    I manage to get the header fixed, bot not the revslider above it. I have tried to identify its div class via the inspector and to control it via css by “position: fixed;” but to no avail.

    Do you have any suggestions for a solution?

    #1119327
    Jade
    Moderator

    Hi there,

    Please add this CSS in the customizer:

    div#rev_slider_2_1_wrapper {
        position: fixed;
        z-index: 1030;
    }
    
    .x-navbar-fixed-top {
        top: 46px;
    }

    Hope this helps.

    #1120100
    kludrik
    Participant

    It worked, but not excactly as I would like it to be. Now the blue line is not present on top of the on page load. It pops up only when you start to scroll down the page. It is supposed to be present at all time.

    Is there any way to achieve this?

  • <script> jQuery(function($){ $("#no-reply-1113492 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>