Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #849672

    When editing a page in which I have multiple Easy Sliders it becomes difficult to identify which slider is which (on the admin side) because each Easy Slider just is labeled the same way: “Easy Slider” as the avia-element-label. Sometimes I have multiple rows of Easy Sliders all stacked up on top of each other. Is it possible to enable custom labels/titles for each Easy Slider on the admin side so that an Easy Slider could be labeled – “Easy Slider – Custom Title Here” when editing the page? OR – add custom labels to Cells or Layout Elements? It would be nice to allow a custom label entry field when editing each element/cell (these would only display in the page editor – not on the site.)

    Pls. advise. Thanks! -A-

    #849677

    Hey smittypages,

    We would be glad to help you with this customization, but at the moment there is no easy way to do this by using a small custom code snippet, so I am afraid its out of the scope of our support.

    But please feel free to request such feature at our feature request system: https://kriesi.at/support/enfold-feature-requests/

    This system allows us to keep track of user suggestions and lets you vote on the feature you would like to see the most. I am afraid though there is no guarantee that a feature will get implemented. If that’s something you really need you can always try to hire a developer for the task :)

    Best regards,
    Yigit

    #1148431

    Hi support team,

    I have the same issues with missing labels on the code-block module, but in my opinion every module should be possible to identify without clicking at it.
    And actually it’s more or less adding 2 lines of code to the shortcode classes your theme provides. I just tried myself adding that feature by editing the shortcode file: config-templatebuilder/avia-ahortcodes/codeblock.php and changing the editor_element method from this:

    public function editor_element($params)
            {
                $params['innerHtml'] = "<img src='".$this->config['icon']."' title='".$this->config['name']."' />";
                $params['innerHtml'].= "<div class='avia-element-label'>".$this->config['name']."</div>";
                return $params;
            }

    to this:

    public function editor_element($params)
    {
    	$content = stripslashes(trim(html_entity_decode( $params['content']) ));
    
    	$params['innerHtml'] = "<img src='".$this->config['icon']."' title='".$this->config['name']."' />";
    	$params['innerHtml'].= "<div class='avia-element-label'>".$this->config['name']."</div>";
    	$params['innerHtml'].= "<div><i>".$content."</i></div>";
    	return $params;
    }

    That way you see the module label like it is now (icon and “code-block”) and in a line below you see the shortcode itself.
    As all your editor-shortcodes are based on nice php classes (nice work!) you could as well just add 1 input field for the module-name (from the users perspective) and output that somehow.

    Of course you have to do a proper simple styling but in general this feature should be very easy to implement and it sooo valuable.
    Have a great day – Karsten

    PS for the records: in case somebody is going to try this: make the changes in your child-theme and NOT directly in the theme files. I only did a quick test in the original files to see if it’s possible (reverted to original stage after).
    You can copy original shortcodes into your child-theme and edit them there (or build new ones). Put this in function.php

    // Add custom shortcodes based on enfold shortcode classes
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
      array_unshift($paths, $template_url.'/avia-shortcodes/'); // change path to your needs depending on how you  named your folder
    
      return $paths;
    }
    #1150072

    Hi,

    @mikabodesign: Looks like you’re trying to display the content of code block element. This is possible, but we don’t really think that everyone would want this. Maybe a display toggle where you can choose whether to display the content of the block or not will help. Anyway, thanks for sharing. We’ll forward this info to the team for further consideration.

    Best regards,
    Ismael

    #1150117

    Hej,
    yes you are right (in not everybody wants to see the whole shortcode) – I just wanted to show how simple it would be to add a little bit extra information. The best (in my opinion) would be to supply one additional input field maybe called “label”. There we could write down in a few words or even 1 word what the shortcode is about.
    I build a website for a client using your theme and we have pages with about 8 to 10 rows having shortcodes in it. It just takes too much time to find the right module if you can’t differentiate them in the backend.

    Best regards
    Karsten

    #1150411

    Hi,

    Thank you for the info.

    We understand your concerns. The dev team acknowledged the requests and it might take a while, but they will try to implement it in the next versions.

    Best regards,
    Ismael

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