-
AuthorPosts
-
March 30, 2016 at 2:57 pm #605206
When using a button or image, is there a way we can link directly to the media Library from within the editor.
March 31, 2016 at 5:07 am #605622Hey Luke86,
I’m not sure I understand what you mean by that, are you looking to link directly to an image?
Best regards,
RikardMarch 31, 2016 at 11:54 am #605806When using Enfold, if I want to add a button to the page and then link the button to a document I have uploaded, the process is as follows:
Go to Media Library
Upload a document
Click the document so I can then copy the direct link
Edit a page
Edit a Button
Add the URL of the document to the buttonThe issue is that the people using the website are not technical and this process is very long compared to their previous setup.
I was thinking about this last night and feel the whole process could be made quicker if the “Add Media” button was accessible when using the avia editor.
March 31, 2016 at 3:37 pm #605954Hey!
I understand your request but i’m afraid this won’t be possible without modifying the link handling functionality extensively, unfortunately that’s beyond our support scope. You can request a customisation quote from a third-party provider here.
Cheers!
JosueMarch 31, 2016 at 3:45 pm #605970Why does the Advanced Layout Builder remove the Add Media button? The button is still on the page, just hidden.
March 31, 2016 at 4:48 pm #606038Hey!
The “Add Media” button is visible for the default wordpress editor. It is not a part of Advance layout builder.
If you like to access add media button while using ALB then use a little just drop the image element and click on it you will be take to the media library in ALB :)
Hope this helps… thank you for using Enfold :)
Cheers!
VinayMarch 31, 2016 at 4:54 pm #606042I understand that but my clients just want to see the button.
How can I display the button, I mean the fact you have taken it away baffles me. Enfold is meant to be extremely user friendly but this process is stupid. You have taken away a default wordpress features and not replaced it with anything.
March 31, 2016 at 7:08 pm #606130It hasn’t been taken away, the button element never had an Add Media button as an option because it was never though to be an “attachment” linker, if you think this should added feel free to request it here as a new feature.
Best regards,
JosueApril 1, 2016 at 2:14 pm #606663Sorry, I wasn’t meaning the button element.
I simple mean, when using the Adavanced Layout Builder the Add Media button is removed. I simply want a way to show it while using the ALB.
Thank you.
April 1, 2016 at 4:14 pm #606756Hey!
Why don’t you suggest to your client to click on “Advance Layout Editor” button so the “Add Media” button will be visible? When they are finished with work in media library they can click again on “Advance Layout Editor” button.
Apart from this suggestion as mentioned earlier to go to the media library while using the advanced layout builder you need to add a image element and click on it or access media link on the wordpress sidebar options. Sorry but at the moment it is not possible to have the “Add Media” button visible while working in Advanced Layout builder.
Regards,
VinayApril 1, 2016 at 4:31 pm #606770I have made that suggestion but it can be quite long winded and they have made the suggestion.
I honestly thought a slight code change would of allowed the Add Media button to be visable whether in the Advance Layout Editor or not.
Thank you for your help and suggestions. I really appreciate the support you guys offer.
April 1, 2016 at 8:34 pm #606861Hey!
We would have surely helped you if there was anything we could really do about it at all… but at the moment there is not an easy way to do it.
We really appreciate your kind words and thanks for understanding!
Cheers!
VinayMay 23, 2017 at 11:04 pm #798557Hey folks,
I was looking for something like this and had an idea on how to shorten the process of uploading and copying the URL for a file. By adding a WYSIWYG editor to the button shortcode, you can upload a file using the Add Media button. Uploading the file in WYSIWYG doesn’t copy the URL to the link field, but at least you could copy the link from that spot and paste it into the manual link.
There are 4 steps to my suggestion: Copy buttons.php to child theme, modify the “Set Manually” text to say “Set Manually or Upload File”, add the WYSIWYG array below the Button Link array, and add CSS to functions.php to hide parts of the WYSIWYG editor in the button Modal Window.
First, I copied buttons.php from Enfold>config-templatebuilder>avia-shortcodes to my child them enfold-child>shortcodes
Second, modify buttons.php and the Button Link subtype array to say Set Manually or Upload File. :
array( "name" => __("Button Link?", 'avia_framework' ), "desc" => __("Where should your button link to?", 'avia_framework' ), "id" => "link", "type" => "linkpicker", "fetchTMPL" => true, "subtype" => array( __('Set Manually or Upload File', 'avia_framework' ) =>'manually', __('Single Entry', 'avia_framework' ) =>'single', __('Taxonomy Overview Page', 'avia_framework' )=>'taxonomy', ), "std" => ""),
Third, inside buttons.php add the following code right after the Button Link array:
array( "name" => __("Content",'avia_framework' ), "desc" => __("Use the Add Media button to upload a file. Then copy the URL to use as a link in the Button Link field above.",'avia_framework' ), "id" => "ContentInButtonModal", "type" => "tiny_mce", "required"=> array('link','equals','manually'), "std" => __("", "avia_framework" ) ),
Fourth, add the following code to your child theme’s functions.php
//Remove the WYSIWYG content in the button Modal Window add_action('admin_print_scripts', 'avia_gravity_forms_admin'); function avia_gravity_forms_admin() { echo "<style type='text/css'>"; echo "#wp-aviaTBContentInButtonModal-editor-container, #wp-aviaTBContentInButtonModal-editor-tools .wp-editor-tabs { display: none; }"; echo "</style>"; }
- This reply was modified 7 years, 6 months ago by dustingrof.
May 25, 2017 at 4:00 pm #799623Hi dustingrof,
Thanks for sharing!
Best regards,
VictoriaMay 25, 2017 at 5:44 pm #799671add_action( 'admin_bar_menu', 'toolbar_link_to_mypage', 999 ); function toolbar_link_to_mypage( $wp_admin_bar ) { $args = array( 'id' => 'insert-media-button', 'title' => 'ADD MEDIA', 'href' => '', 'meta' => array( 'class' => 'insert-media add_media' ) ); $wp_admin_bar->add_node( $args ); }
If it doesn’t work for anyone, reply here and ill sort it, my functions.php is loaded with code and I might of missed something.
Add that to functions.php in your child theme and a “ADD MEDIA” link appears in the admin bar that appears across the top when logged in.
- This reply was modified 7 years, 6 months ago by Luke86.
May 26, 2017 at 5:42 am #799977May 26, 2017 at 10:23 pm #800410Hey @luke86,
I like your solution better, it is less confusing for my clients.Thanks!
May 27, 2017 at 11:58 pm #800663You’re welcome!
-
AuthorPosts
- You must be logged in to reply to this topic.