Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #605206

    When using a button or image, is there a way we can link directly to the media Library from within the editor.

    #605622

    Hey Luke86,

    I’m not sure I understand what you mean by that, are you looking to link directly to an image?

    Best regards,
    Rikard

    #605806

    When 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 button

    The 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.

    #605954

    Hey!

    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!
    Josue

    #605970

    Why does the Advanced Layout Builder remove the Add Media button? The button is still on the page, just hidden.

    #606038

    Hey!

    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!
    Vinay

    #606042

    I 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.

    #606130

    It 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,
    Josue

    #606663

    Sorry, 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.

    #606756

    Hey!

    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,
    Vinay

    #606770

    I 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.

    #606861

    Hey!

    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!
    Vinay

    #798557

    Hey 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.
    #799623

    Hi dustingrof,

    Thanks for sharing!

    Best regards,
    Victoria

    #799671
    add_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.
    #799977

    Hi @Luke86,

    Thanks a lot for sharing, much appreciated :-)

    Best regards,
    Rikard

    #800410

    Hey @luke86,
    I like your solution better, it is less confusing for my clients.

    Thanks!

    #800663

    You’re welcome!

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.