Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1035645

    Hi
    i am trying to add character limit to page inputs that appears in “avia-modal” when we edit page, but i am unable to differentiate the element because it having same class on all page. my problem is i have to apply different character limits in different section so can you guide me to edit core file or do some custom
    function.

    i found #post-757794 and it is some related to my problem but i am not get any idea. so please give me some help regarding this

    • This topic was modified 6 years, 7 months ago by rrajan18.
    #1036564

    Hey rrajan18,

    I’m not sure I understood it completely but can you give us some examples like links or screenshots where you want to apply the limit?
    By identifying this, I think we will be able to help you properly.
    Also for the post you posted, can you give us the full link of that thread?

    Best regards,
    Nikko

    #1036641

    Hi Nikko,
    Thanks for replay Actually i have created website and in home page i have created multiple color section with custom id now i have to do that in one color section i have a special heading element and i have to give limit to admin to input only 150 character, And in other color section for special heading i have to give character limit 250. I have searched in Avia modal box that open when we go to edit page and inspected but i didn’t get unique id for that. i am sharing screen shot with this please check out

    Thanks In Advance
    Below are the link of screen shots
    Image 1
    image 2

    color section where  want character  limit
    in this color section i want diffrent character limit

    • This reply was modified 6 years, 7 months ago by rrajan18.
    #1037523

    Hi rrajan18,

    I apologize for the late response. 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 it’s out of the scope of our support.
    I tried to check on how we may try to help you with it however it’s beyond my capability since you would have to modify a lot in the core, I would suggest looking in enfold > config-templatebuilder > avia-templatebuilder first.

    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.

    Best regards,
    Nikko

    #1037628

    Thanks Nikko,

    just one help want from you. How can i get current post id which we are open for edit in html-helper.class in avia-templatebuilder

    #1038046

    Hi rrajan18,

    Try using:

    $id = get_the_ID();

    or:

    global $post;
    $id = $post->ID;

    Hope this helps.

    Best regards,
    Nikko

    #1038090

    Thanks Nikko ,

    I found solution

    #1038405

    Hi Nikko

    i done customization for character limit i have made some changes in avia-builder.js and placed in enfold-child folder same as enfold parent folder structure but after that the WordPress core functionality that is when i go to add new user the password generation button not working.
    can you please suggest me the good way to replace avia-builder.js file in enfold-child folder

    Thanks In Advance

    #1038546

    Hi rrajan18,

    Can you try to create a js folder in your child theme and then copy and paste avia-builder.js file inside the js folder, then in functions.php add:

     // Load child theme avia-builder js 
     function wp_change_aviabuilderjs() {
    	wp_dequeue_script( 'avia_builder_js' );
    	wp_enqueue_script( 'avia_builder_js-child', get_stylesheet_directory_uri().'/js/avia-builder.js', array('jquery','jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-droppable','jquery-ui-datepicker','wp-color-picker','media-editor','post'), 2, true );
     }
     add_action( 'wp_print_scripts', 'wp_change_aviabuilderjs', 100 ); 

    Hope it helps.

    Best regards,
    Nikko

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