Tagged: x
-
AuthorPosts
-
August 2, 2016 at 4:47 am #1113492
kludrikParticipantI 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.phpby 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?
August 2, 2016 at 4:58 am #1113503
ChristopherModeratorHi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
August 2, 2016 at 6:03 am #1113574
kludrikParticipantThis reply has been marked as private.August 2, 2016 at 6:48 am #1113617
kludrikParticipantThis reply has been marked as private.August 2, 2016 at 6:49 am #1113619
Paul RModeratorHi,
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
August 2, 2016 at 8:12 am #1113718
kludrikParticipantThank you! It worked fine. It makes it possible to change the text and info on 52 pages at once, if neccesary! Superb!
August 2, 2016 at 8:38 am #1113761
JoaoModeratorHi There,
Would you mind clarifying what text you are referring to?
Thanks
Joao
August 2, 2016 at 11:46 am #1114022
kludrikParticipantI 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” ?
August 2, 2016 at 1:08 pm #1114144
RupokMemberHi 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!
August 2, 2016 at 3:55 pm #1114451
kludrikParticipantIts 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_REDIRECTSHow can I fix this?
August 2, 2016 at 4:36 pm #1114503
kludrikParticipantSeems to be a inhouse local router problem. Thank you for your good help ! 🙂
Thanks!
August 2, 2016 at 7:32 pm #1114635
JadeModeratorYou’re most welcome.
August 5, 2016 at 5:22 am #1118681
kludrikParticipantThe 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?
August 5, 2016 at 3:17 pm #1119327
JadeModeratorHi 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.
August 6, 2016 at 6:11 am #1120100
kludrikParticipantIt 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?
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1113492 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
