Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #545774

    Hi,

    I have created a new avia-shortcode — (FULL Width Slider, Driven from Image Tags)
    The Meida Library has the post_tag taxonomy enabled on it, allowing the images to be selected and made into random galleries.

    Leaving the file in
    /config-templatebuilder/avia-shortcodes/

    The new plugin short code works perfectly, and I have the TinyMce editor working correctly & the Frontend.

    Looking through the code, it appears that if I try and move the class to another location (wp-content/plugins/myplugin) it fails on the DRAG & DROP in the editor, although it appears to be adding correctly otherwise. I’ve popped the code in the Private section

    ————————-
    Any Hints on which hook i’ve missed to get this to work fully from a plugin location ?

    • This topic was modified 10 years, 2 months ago by akfdev. Reason: Trying to add code blocks properly
    #545798

    Correction to a AVIA file — The $paths variable is not being modified, it’s being replaced. The order of the plugins being loaded is essential on the array_merge($newpaths,$paths); to make it work. Possible to roll this out into Enfold ?

    // config-templatebuilder/config.php modificaiton

    function add_shortcode_folder($paths)
    {
            $newpaths = array(dirname(__FILE__) ."/avia-shortcodes/");
            return array_merge($newpaths,$paths);
    }
    
    add_filter('avia_load_shortcodes','add_shortcode_folder');
    • This reply was modified 10 years, 2 months ago by akfdev.
    #546989

    Hey!

    in this forum we can offer basic support only, as written in our support policy when registering. It would require a huge amount of time and work to achieve what you need and that is why you would need to hire a freelance developer for this job.

    Regards,
    Andy

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