Tagged: x
-
AuthorPosts
-
May 26, 2016 at 4:06 pm #1011784
bezambarParticipantWould it be possible to out a container above the masthead? I would like to display an accordion slider above the masthead by using the shortcode. What would be the best way to do this.
May 26, 2016 at 9:33 pm #1012253
RadModeratorHi there,
Thanks for writing in.
Yes, you can do that by adding this code to your child theme’s functions.php with your accordion shortcodes or container.
add_action('x_after_site_begin', 'above_masthead_container'); function above_masthead_container () { echo do_shortcode('<!--replace this content with your container or accordion shortcode-->'); }Just replace this line
<!--replace this content with your container or accordion shortcode-->Cheers!
May 27, 2016 at 4:53 pm #1013567
bezambarParticipantThanks, but will this add the slider on all pages or just specified pages.
May 27, 2016 at 10:35 pm #1013935
Prasant RaiModeratorHello There,
Above code will display content of shortcode in all pages across website.
Thanks.
May 30, 2016 at 3:06 pm #1016964
bezambarParticipantWould it be possible to specify the pages, or even just put it on the home page?
May 30, 2016 at 5:19 pm #1017080
DarshanaModeratorHi there,
Use the following code instead.
add_action('x_after_site_begin', 'above_masthead_container'); function above_masthead_container () { if ( is_page( 61 ) ) { echo do_shortcode('[x_custom_headline type="center" level="h2" looks_like="h3" accent="true"]My Custom Headline[/x_custom_headline]'); } }Replace 61 with your page ID. Here’s how to locate page/post IDs (https://community.theme.co/kb/how-to-locate-post-ids/).
Hope that helps.
June 2, 2016 at 3:54 pm #1022950
bezambarParticipantthank you
June 2, 2016 at 4:20 pm #1022986
bezambarParticipantOne more question, how would i put it above the menu?
June 2, 2016 at 10:36 pm #1023564
Rue NelModeratorHello Again,
If you want to put it above the menu, please find and replace this line:
add_action('x_after_site_begin', 'above_masthead_container');And replace it with this code instead.
add_action('x_before_view_global__navbar', 'above_masthead_container');We would loved to know if this has work for you. Thank you.
June 3, 2016 at 3:00 pm #1024682
bezambarParticipantNothing changed, my slider still seems to appear above the entire masthead.
June 4, 2016 at 12:03 am #1025273
Rue NelModeratorHello There,
To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
June 6, 2016 at 9:11 pm #1029135
bezambarParticipantThis reply has been marked as private.June 7, 2016 at 3:26 am #1029529
Paul RModeratorHi,
We need your wordpress admin login or ftp login to be able to check on this.
Thanks
June 7, 2016 at 1:54 pm #1030414
bezambarParticipantok you can use the same one now
June 8, 2016 at 12:30 am #1031280
LelyModeratorHello There,
Did you mean that we can use the same credentials for FTP? I tried but I got the following error:
530 Login authentication failed Error: Critical error: Could not connect to serverI want to check on which page you have implemented the code.
add_action('x_before_view_global__navbar', 'above_masthead_container'); function above_masthead_container () { if ( is_page( 61 ) ) { echo do_shortcode('[x_custom_headline type="center" level="h2" looks_like="h3" accent="true"]My Custom Headline[/x_custom_headline]'); } }Please provide your correct FTP credentials and the URL where you want to implement this.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1011784 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
