Forum Replies Created
-
AuthorPosts
-
You might want to read my post here first before rushing to update.
You might want to read my post here first before rushing to update.
I changed line 435 of wp-content/themes/enfold/framework/php/class-form-generator.php from:
if( ! empty( trim( $element['label'] ) ) )
to
//if( ! empty( trim( $element['label'] ) ) )
All I can say is that it got my sites up and running again. Commenting out that code may yield other errors, and I didn’t trace the execution to see if that was the case. My goal was to just get things to a point where I could easily update enfold when 4.0.7 is released.
I’m seeing the same thing. I commented out line 435 of that file for a temporary fix to my sites until the theme is updated.
I just went through this myself for my site, at least question #2 that you asked. Try putting the following into your Quick CSS:
div.av-masonry-image-container > img { width: 100%; }
- This reply was modified 9 years, 9 months ago by jpollackphoto.
This reply has been marked as private.I did not use a top menu at all for my installation, which is why none of the code you suggested was applicable and why some of it didn’t execute. The link to my test site will follow in a private reply below.
I managed to get it working by defining the following in the child theme’s functions.php:
function get_extra_menu_items() { $html = ... return $html; } if(!function_exists('avia_social_media_icons')) { function avia_social_media_icons($args = array(), $echo = true) { $icons = new avia_social_media_icons($args); $extrahtml = get_extra_menu_items(); if($echo) { echo $icons->html() . $extrahtml; } else { return $icons->html() . $extrahtml; } } }
It would be nice to see enfold gain a hook for this functionality, along with the ability for dynamic vertical sizing in an arbitrary DIV or SPAN rather than forcing the user to use an A tag where it doesn’t really belong.
If you can suggest another or better way of doing what I’ve done, I’d love to hear it!
Thanks,
JonathanSomething else I tried…
I got the code to execute by adding it as an action to ava_after_main_menu, but that falls outside of the nav tag. If I open another nav tag and build a separate nav menu, it overlaps the right-aligned other nav tag present.
JonathanHi Ismael,
I tried your approach but I am not seeing any additional items in the menu at all – nor is the new HTML being output into the stream.
Some conditional is preventing the calling block of code to be executed. Any ideas?
FYI, what I’d like to end up with is something similar to the box in the upper right corner of my current site (https://web.archive.org/web/20140331064238/http://www.jpollackphoto.com/).
Thanks for your help,
Jonathan- This reply was modified 10 years, 8 months ago by jpollackphoto. Reason: Traced execution
-
AuthorPosts