-
AuthorPosts
-
January 13, 2017 at 6:59 pm #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.
ThanksJanuary 16, 2017 at 5:44 pm #734251Hey!
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 hereBest regards,
YigitJanuary 16, 2017 at 6:34 pm #734281Hello 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 MarkusJanuary 18, 2017 at 6:00 pm #735454Hi,
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,
YigitJanuary 19, 2017 at 10:41 am #735777Hello 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
January 19, 2017 at 1:57 pm #735845Hi,
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,
YigitJanuary 19, 2017 at 4:26 pm #735938Hello 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.phpfunction 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.
MarkusJanuary 24, 2017 at 11:55 pm #738006Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.