Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #218346
    IPR
    Participant

    Hey 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

    #218469
    John Ezra
    Member

    Hi 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!

    #218495
    IPR
    Participant

    this helps – thx!

    #218654
    Friech
    Moderator

    You’re more than welcome, glad we could help, Cheers.

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