Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

Customizing buttons by increasing cut-off limits for button title and description text length

3 Posts
2 Users
0 Reactions
3,040 Views
(@office)
Active Member
Joined: 12 years ago
Posts: 10
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#35]

Hi there,

Please advise on how can I increase the maximum number of characters for the button title and description fields for Layout #2.

Currenlty they are set to 24 and 65 characters, respectively, but as you can see below they can be easily increased to 40 and 100 characters, respectively.

ACP-Pro-extension-of-button-text-length.png

Best regards,

Gabriel



   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 11 years ago
Posts: 4245
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hi Gabriel,

If you use non-Ajax pagination (simple page reload), you should open /advanced-content-pagination-pro/buttons_layouts/page_reload/button_layout_2_js.php  file, find all these methods, and change second arguments:

For button titles:

$this->acp_button_text($title, 24)

For button description:

$this->acp_button_text($desc, 65)

If you use Ajax Pagination you should open and do the same for /advanced-content-pagination-pro/buttons_layouts/ajax_load/button_layout_2_js.php file



   
ReplyQuote
(@office)
Active Member
Joined: 12 years ago
Posts: 10
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thanks a lot for your advise, I will let you know how it worked



   
ReplyQuote
(@office)
Active Member
Joined: 12 years ago
Posts: 10
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I did it and it works perfectly!



   
ReplyQuote
Share:
Scroll to top