
-
AuthorPosts
-
November 20, 2018 at 4:21 pm #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.
November 22, 2018 at 3:43 pm #1036564Hey 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,
NikkoNovember 22, 2018 at 5:44 pm #1036641Hi 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 outThanks In Advance
Below are the link of screen shots
Image 1
image 2
-
This reply was modified 6 years, 7 months ago by
rrajan18.
November 26, 2018 at 6:04 am #1037523Hi 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,
NikkoNovember 26, 2018 at 12:37 pm #1037628Thanks 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
November 27, 2018 at 4:03 pm #1038046Hi rrajan18,
Try using:
$id = get_the_ID();
or:
global $post; $id = $post->ID;
Hope this helps.
Best regards,
NikkoNovember 27, 2018 at 5:41 pm #1038090Thanks Nikko ,
I found solution
November 28, 2018 at 10:54 am #1038405Hi 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 folderThanks In Advance
November 28, 2018 at 3:13 pm #1038546Hi 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 -
This topic was modified 6 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.