Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #733289

    Hello, is it possible to place the defined social icons somewhere in the top area (underneath the logo perhaps or on the very top like the address/tel/fax strip in the streched layout)?
    I’ve read this post: https://kriesi.at/support/topic/boxed-layout-4/, but he has solved his problem by leaving the boxed layout unfortunately.
    Thanks

    #734251

    Hey!

    Can you please post a link to your website and a screenshot showing the changes you would like to make?
    You can upload your screenshots on imgur.com or Dropbox public folder and post the links here

    Best regards,
    Yigit

    #734281

    Hello Yigit,
    Here is a screenshot. I mean the red marked place with “social icons” underneath the logo and it’s a boxed layout.
    Screen
    br Markus

    #735454

    Hi,

    Please try adding following code to Functions.php file in Appearance > Editor

    function av_move_social(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery(".html_header_sidebar .av-sidebar-social-container").detach().prependTo('.html_header_sidebar #header .container .inner-container')
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'av_move_social');

    Best regards,
    Yigit

    #735777

    Hello Yigit, thanks for the code, but i tried to add it to my enfold-child function.php and it broke the page. I tried several <?php and ?> combinations, but no luck. Can you tell me what is missing? My function.php is the folllowiing:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    /*m_code Adding Google Font*/
    
    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Merienda'] = 'Merienda';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
    return $fonts;
    }
    
    /*m_code: Trial Adding FOOTER fullwidth section DIV*/
    /*--> footer.php: <div id="yourfooterwidgetid">*/
    //register_sidebar(array('name'=>'Fullwidth Footer Widget',));
    
    /*m_code: Adding HEADER fullwidth section DIV*/
    //add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    //function enfold_customization_header_widget_area() {
    //	dynamic_sidebar( 'header_extra' );
    //}
    
    // m_code: Enable shortcodes in text widgets
    add_filter('widget_text','do_shortcode');
    
    add_action('in_widget_form', 'awts_get_widget_id');
    
    function awts_get_widget_id($widget_instance)
    
    {
    
    // Check if the widget is already saved or not.
    
    if ($widget_instance->number=="__i__"){
    
    echo "<p><strong>Widget ID is</strong>: Pls save the widget first!</p>" ;
    
    } else {
    echo "<p><strong>Widget ID is: </strong>" .$widget_instance->id. "</p>";
    
    }
    }
    
    /*
    // m_code:  * add option to edit elements via css class
     */
    add_theme_support('avia_template_builder_custom_css');

    Thanks Markus

    #735845

    Hi,

    What exactly is the error you are getting?
    Can you please post FTP logins here privately as well so we can try adding the code for you?

    Best regards,
    Yigit

    #735938

    Hello Yigit,
    now i want to reproduce the error and copied your code again in the child function.php and now the page is loading without error, sorry. Probably my computer was the guilty part.
    But as good, as bad, the social icons doesn’t appear underneath the logo.
    I added your code as it was at the very end of the functional.php

    function av_move_social(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery(".html_header_sidebar .av-sidebar-social-container").detach().prependTo('.html_header_sidebar #header .container .inner-container')
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'av_move_social');

    Also i tried it now to copy it to the parent enfold function.php (parallel), but then i got an 500 error.
    Markus

    #738006

    Hi,

    You don’t need to add the function in the parent theme, just add it on the child theme’s function.php and that should be enough.

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.