Forum Replies Created
-
AuthorPosts
-
The code snippet works great,but there is one issue. If you use the magazine element with ‘Display Tabs for each category selected above?’ – when you click on the tab on the front end, the tab will not be sorted as specified in the sorting options. How to fix that?
February 18, 2019 at 5:59 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1068500Thank you Günter,
It seems to work!
Just one more question, will this code be included in the next version of Enfold? Or will I have to always overwrite it after update?
Kind regards,
Richard
February 8, 2019 at 10:58 am in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1064527Thank you Günter!
- This reply was modified 5 years, 9 months ago by Genetics Ed.
February 6, 2019 at 5:50 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1063708Yes, that is how it should work, but It seems it stops working in that way if the modal window also uses wysiwyg editor (e.g. image with hotspots, if you edit the hotspot content, save it, the shortcode will not be inserted in the ‘active’ editor where you placed your cursor, but into the main editor instead.
February 6, 2019 at 3:03 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1063648I believe that the problem is located in the avia-modal.js possibly due to using:
parent = current.parents(‘.wp-editor-wrap:eq(0)’),
and also:
window.switchEditors
instead of using something like this:
tinyMCE.activeEditor
February 6, 2019 at 12:54 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1063591I don’t understand what is your code supposed to do as all the editors on the page have the class name wp-editor-area as all of them are standard wp editors.
It has nothing to do with the icon. The icon appears fine and the shortcodes are functioning, the problem is that the generated code is placed in the text area of wrong editor and not the one it was called from.February 4, 2019 at 12:40 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1062639Intentionally? Why? Hardcoding any values is a bad coding practice!
Also, as the default editor has an existing content with shortcodes, it is very difficult to explain to non-technical users how to copy the newly generated shortcode from the default editor, as they have no idea where the existing text/html/shortcode ends and the newly generated shortcode starts. It is very anti-user-friendly and causes lots of problems with broken pages (by users clipping or pasting partial shortcodes).
Can you please let me know which lines of code in the javascript file need changing?
Thanks,
Richard
January 30, 2019 at 3:15 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1060505Any update on the issue?
January 28, 2019 at 12:21 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1059590Hi Rikard,
It can be reproduced on any enfold theme that has additional wysiwyg editor metabox (could be added by ACF, Metabox.io, other plugins or custom code) in edit post / page screen.
This is not a plugin issue, but rather a flaw in the theme javascript which ‘hardcodes’ the main editor textarea rather than using the dynamic id of the current editor used.Richard
Oh of course. You upload the image as the video thumbnail and add the link to the image. Hahaha :)
Is it still possible to have a video open in a lightbox? I tried what was suggested in the 2nd post – ‘use the Image element. Add the url of the video. This will automatically open the video on a lightbox.’ But there is no option to add a url anywhere in the Image element.
Is there a solution to this?
Thanks
Hmm, I don’t appear to have an Enfold > Performance panel. I’m running version 4.0.7 of the theme, assuming I need to update!
September 13, 2018 at 5:45 pm in reply to: Image with external link – hover effect not consistent #1009554Thanks, I’ll change all my images to JPG. Will this be fixed in the next release?
September 13, 2018 at 5:17 pm in reply to: Image with external link – hover effect not consistent #1009527This reply has been marked as private.ok, I copied single.php to my child theme and added the code. Thanks for the help.
That seems like a better solution. But is it possible to insert a custom hook at that location using my child theme?
Seriously, that’s the easiest way?
I’m astonished there’s no hook at the location I want.
Any help from kriesi mods would be greatly appreciated. Thanks
Nice. Thanks for that.
Off topic: Custom HTML widget with this code:
<ul class="noLightbox social_bookmarks icon_count_3"> <li class="social_bookmarks_facebook av-social-link-facebook social_icon_1"> <a target="_blank" href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Facebook"> <span class="avia_hidden_link_text"> Facebook</span> </a> </li> <li class="social_bookmarks_twitter av-social-link-twitter social_icon_2"> <a target="_blank" href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Twitter"> <span class="avia_hidden_link_text"> Twitter</span> </a> </li> <li class="social_bookmarks_youtube av-social-link-youtube social_icon_6"> <a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Youtube"> <span class="avia_hidden_link_text"> Youtube</span> </a> </li> </ul>
That last method outputs it beneath the content title and main image: https://futuregenetic.com/what-is-dna/
- This reply was modified 7 years ago by Genetics Ed.
Thanks Guenni007 I’ll try it out later. Much appreciated.
exactly.
No it’s not in the correct position. That widget spans full width. I want mine to only span the width of the main content area as outline here: http://prntscr.com/h6fesn and in the original post.
I do not want the widdet to span accross the left hand sidebar. Also the widget in the position you’re suggesting inserts the content into the title bar and not below it (as can be seen by the border-bottom).
- This reply was modified 7 years ago by Genetics Ed.
Done.
As you can see I’ve added the banner ad to some pages. The homepage using Layout Builder and the woocommerce pages using woocommerce hooks.
add_action( ‘woocommerce_before_shop_loop’, ‘adsense_hook’ );
add_action( ‘woocommerce_single_product_summary’, ‘adsense_hook’, 1 );But all other pages it is difficult when no hook exists
Yes, I have created my own widget but I cant get it to display in the correct location. I used ‘ava_after_main_title’ but it appears here: http://prntscr.com/h6fesn and not where I originally specified.
I want it to appear on every page of my site in this location so using the Layout Builder is not a viable option.
-
AuthorPosts