Forum Replies Created
-
AuthorPosts
-
I know what you mean, however, changing the blog style is not practical for me, as it would change the whole look of the blog.
thx for your help anyway!
Sorry Josue, but that won’t solve it. My problem isn’t that I want to display the title above the feature image, I already got that to work. My problem is, that the title and meta info jumps from below the feature image above it while the page is loading.
There seems to be an issue with the right queuing of the child theme files and it would be amazing if you or someone else from the support team could take a look at that.
Here is the code that I use again:
In my child theme’s function.php:
function change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_enqueue_scripts', 'change_aviajs', 1 );
In my child theme’s avia.js:
jQuery('article.post').each(function(){ jQuery(this).find('.entry-content-header').after(jQuery(this).find('.big-preview').detach()); })
Thanks!
Could you tell me what code makes the title appear above in the “Elegant” Blog styling? I don’t want to change the rest of my blog’s styling.
The avia.js was in the child-theme folder because I want to display the post title and meta above the feature image. For that purpose I use this code:
jQuery('article.post').each(function(){ jQuery(this).find('.entry-content-header').after(jQuery(this).find('.big-preview').detach()); })
I am using the avia.js file from the 3.4.4 version now and simply added the code to the bottom. Everything is working as it should now.
Thank you very much!
Best,
Julian
I deleted the line and it solved the error below the footer. The menu still doesn’t appear, however.
Hey Elliott,
That’s good to know, but what can I do now? Could you take a look at my functions.php code?
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions in this file. // ============================================================================= // Custom Class for every element add_theme_support('avia_template_builder_custom_css'); add_action('wp_footer', 'add_custom_script'); function change_shortcodesjs() { wp_dequeue_style( 'avia-base' ); wp_enqueue_style( 'avia-base-child', get_stylesheet_directory_uri().'/css/base.css', array(), '2', 'all' ); } if(!is_admin()){ add_action( 'wp_enqueue_scripts', 'change_shortcodesjs', 100 ); } function change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 ); add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1); function avia_replace_standard_icon($icons) { $icons['mobile_menu'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue811'); return $icons; } add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) ); add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 ); function enfold_customization_modify_thumb_size( $size ) { $size['entry_with_sidebar'] = array('width'=>854, 'height'=>569); return $size; } ?>
Thx!
the error message is below the socket. it’s hard to see because it has almost the same color.
Did everything you told me but the problem still persists. In addition I found following error below the footer:
“Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_custom_script’ not found or invalid function name in /home/lovelife/public_html/wp-includes/plugin.php on line 503”Could you please take a look?
Hey Elliott,
I updated to 3.4.4 but nothing changed. Could you please take another look?
Best,
Julian
Hey,
Sorry! You should be able to access the site now.
Hey Andy,
I did all of the above but still no results. Could it be a problem with the color section?
Yeah, you can turn plugins on and off.
I really appreciate your effort!
Best,
Julian
Tried it. Nothing changed.
Best,
Julian
Oh I’m sorry. This one works now. :)
Yes I did.
Thanks!
Unfortunately deactivating all plugins didn’t change anything. It would be great if you could take a look.
Thank you very much!
Tried it but nothing changed.
I deleted all theme files and reuploaded everything, but nothing has changed.
I still get the same warning about the plugin.php line 503.
Hey,
Thank you very much!
I use Helvetica Neue for headings, Open Sans for body copy and for some special pieces of text Merriweather.
I don’t use a newsletter plugin. The styling is custom made with CSS and HTML.
Hey,
Here is my first Enfold project:
Thx team Kriesi, it was always wonderful working with the theme and the support team!
regards,
Julian
This reply has been marked as private.December 7, 2014 at 5:03 pm in reply to: Social icons next to menu when using "Logo center menu below" layout #364292Figured it out! :)
Thx!
Works again! Thx! :)
Hey Josue,
Thx for the help! It works now!
kind regard,
Julian
Hey Josue,
I hate to be a pain in the ass but the headings are still not the right font. I have selected Oswald in the general styling menu but all headings show Open Sans.
For example the big headline with the class “home_img_headline” on top of the image. This dynamic_avia style should get applied:
h1 { font-family: 'Oswald', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
However, something overwrites it.
I suspect there is a problem between the base.css and the dynamic_avia files. They both have styles for the headlines specified. Maybe registering the base.css in the child theme caused it to break:
function change_shortcodesjs() { wp_dequeue_style( 'avia-base' ); wp_enqueue_style( 'avia-base-child', get_stylesheet_directory_uri().'/css/base.css', array(), '2', 'all' ); } if(!is_admin()){ add_action( 'wp_enqueue_scripts', 'change_shortcodesjs', 100 ); }
If that was the problem, am I save to delete the font-family styles from my child-theme’s base.css?
This is the last problem I am having. Could you please look into that one one more time?
Sorry again for demanding so much of your valuable time.
THX!
Julian
Hey Ismael,
Did it, nothing changed. How is deleting that code supposed to change the font of all headings on the site?
I am using a child theme. Aren’t I supposed to add the styles to the style.css in the child theme?
Regards,
Julian
This reply has been marked as private.Hey,
I can see everything again, thank you very much!
I have one remaining problem however. I added the avia_register_frontend_scripts to register some files like base.css in my child theme. After removing it those files aren’t working anymore.
How can I register files like base.css or avia.js in the child theme without breaking the site again?
thank you for the top support, I really appreciate it!
regards,
Julian
This reply has been marked as private.Tried it. Didn’t change anything…
What else could we do?
-
AuthorPosts