-
AuthorPosts
-
February 29, 2016 at 1:21 pm #817225
I was trying to insert a short-code for log-in/ log-out in the second header. But you have not made this possible in your theme.
Can you please advice on how to insert a short-code here?
Also (suggestion) I think you should make the 2nd header more flexibile, in order to e.g. turn off the social links and e.g. insert log-in text instead.
Thanks
PeterFebruary 29, 2016 at 8:58 pm #817622Hello Peter,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. 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.
Thanks.
March 2, 2016 at 11:51 pm #821418This reply has been marked as private.March 3, 2016 at 12:54 am #821488Hi there,
Thanks for writing in! You can use HTML on the topbar area. If you need to use shortcode then you can try the Header Widget Areas.
Cheers!
March 10, 2016 at 12:39 pm #832401Hi there. Header Widget Area is an absolute no go.
There is no chance you will enable short codes for the header?
March 10, 2016 at 7:07 pm #832858Hi there,
Thanks for writing in! There aren’t any plans at the moment to do this. What you can do is use a test page to use your shortcode. Save and view the source code. The generated HTML will show, you can then copy that HTML and use it in the topbar.
It’s not convenient but it is a workaround you can apply.
Hope this helps – thanks!
March 10, 2016 at 7:17 pm #832866Hi Peter,
Not yet, but you can try this solution. Add this code to your child theme’s functions.php
add_filter('x_option_x_topbar_content', 'do_shortcode');
This will enable shortcode on your topbar’s content. When you’re done, please add your shortcode within your topbar’s content.
Hope this helps.
March 23, 2016 at 3:30 am #849194This reply has been marked as private.March 23, 2016 at 3:48 am #849209Hi Peter,
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.
For the meantime, please also add this shortcode on your topbar for testing purposes only.
[icon type="adjust"]
Always,
XMarch 24, 2016 at 4:24 am #850810This reply has been marked as private.March 24, 2016 at 4:47 am #850832Hi Peter,
Thank you for providing your login credentials.
Upon checking, I can see the icon shortcode works on your top bar which means that shortcodes are now enable in your topbar content.
Please note that there is no loginout shortcode by default
To add that link in your topbar, create file _topbar.php in wp-content/themes/x-child/framework/views/global
then copy the code below into that file.<?php // ============================================================================= // VIEWS/GLOBAL/_TOPBAR.PHP // ----------------------------------------------------------------------------- // Includes topbar output. // ============================================================================= ?> <?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?> <div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <span class="wploginout"><?php wp_loginout(); ?></span> <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?> <?php x_social_global(); ?> </div> </div> <?php endif; ?>
Hope that helps
-
AuthorPosts