-
AuthorPosts
-
March 2, 2015 at 6:55 am #218346
IPRParticipantHey guys, another topic with a question:
I’ve read your https://theme.co/x/member/kb/customization-best-practices/ customization-best-practices tutorial which is pretty clear. So we’ve learned, we’ve got stacks for each view/stack and additionaly a folder for global templates which are used throughout all stacks.
So my aim was to alter the social links in the topbar, and I’ve managed to find my way through from VIEWS/RENEW/WP-HEADER.PHP where it says:
<?php x_get_view( 'global', '_topbar' ); ?>to
VIEWS/GLOBAL/_topbar.php where it says
<div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <?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>Do you just call the function here of the x_social_global or is there a hint where the template of the social icons is stored?
I just want to understand how your theme works, because I’ll have to customize a lot of things and I also wanted to include my language switcher in the floated right social bar at the top.
(Yeah ofcourse I could just put my language switcher inside a class .x-topbar .x-social-global to achieve that, but I wouldn’t have learned anything about the x-social-global template or where it is stored)thx in advance
March 2, 2015 at 9:28 am #218469
John EzraMemberHi there,
Thanks for writing in! You can see the template here:
/wp-content/themes/x/framework/functions/global/social.php
and the functions here:
/wp-content/themes/x/framework/functions/
Hope this helps – thanks!
March 2, 2015 at 10:14 am #218495
IPRParticipantthis helps – thx!
March 2, 2015 at 1:59 pm #218654
FriechModeratorYou’re more than welcome, glad we could help, Cheers.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-218346 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
