Language menu to headeder

Support Area Forums Foxy Language menu to headeder

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://massivebikes.com/
  • Author
    Posts
  • #30475
    peter Scsaurszki
    Participant

    Hello,

    We managed to install ploylang to foxy, but we do not want to add the language bar to the basic menu.

    we would like to add smalls flag to the header

    can you help me how to make it?

    By the way we use all the social links, but there is no button for Tumblr (we use yelp button for tumblr actually) is it possible to add tumblr button to the theme?

    Thanks, Peter

    #30490
    Bill Robbins
    Moderator

    Good Morning Peter,

    We should be able to add those to the header for you. It looks like the plugin has a template tag we can use to display the languages that you’ve added. Here’s how to add it:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. From the list of files on your right, choose header.php and find this spot:
      
      <?php get_template_part( 'layouts/header-links' ); ?>
      

      and right above that add this:


      (Please copy that code directly from the support site and not the notification email.)

    3. Save your changes.

    That should add in the languages. We may have to style them just a bit to fit in. Let me know if you need help there.


    You can change the Yelp icon to a Tumblr one. Back in the editor, edit the header-links.php file and locate this line (line 24):

    
    <li><a target="<?php echo of_get_option('social_open'); ?>" class="font-icon-social-yelp" href="<?php echo of_get_option('yelp'); ?>"></a></li>
    

    and change it to this:

    
    <li><a target="<?php echo of_get_option('social_open'); ?>" class="font-icon-social-tumblr" href="<?php echo of_get_option('yelp'); ?>"></a></li>
    

    and save your changes. That should swap out the Yelp icon for a Tumblr one. If you’d rather just add in a Tumblr link in case you ever need a Yelp link too, right above this:

    
    </ul><!-- #header-links -->
    

    add this:

    
    <li><a target="<?php echo of_get_option('social_open'); ?>" class="font-icon-social-tumblr" href="http://massivebikes.tumblr.com/"></a></li>
    

    and save your changes. If you run into any questions, let me know.

    Thanks,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Language menu to headeder’ is closed to new replies.