Skip to content

Commit

Permalink
ajusta limitee de caracteres ttulos e resumos home
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagolamonte committed Jul 23, 2024
1 parent 71788e9 commit a779225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/midia-ninja-theme/library/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ function ethos_theme_setup() {
*/
function limit_title_length_on_home($title) {
if (is_front_page()) {
$max_length = 100; // Defina o número máximo de caracteres
$max_length = 50; // Defina o número máximo de caracteres
if (strlen($title) > $max_length) {
return substr($title, 0, $max_length) . '...';
} else {
Expand All @@ -789,7 +789,7 @@ function limit_title_length_on_home($title) {

function limit_excerpt_length_on_home($excerpt) {
if (is_front_page()) {
$max_length = 160; // Defina o número máximo de caracteres
$max_length = 150; // Defina o número máximo de caracteres
if (strlen($excerpt) > $max_length) {
return substr($excerpt, 0, $max_length) . "...";
}
Expand Down

0 comments on commit a779225

Please sign in to comment.