I designed it like that every title in a line is better, so if you want to reverse it:
1- edit the file “wp-content\plugins\news-ticker-benaceur\style-anim\inc \scripts_1-0-2.js” and delete between “// ellipsis” and “// ellipsis”
2- replace the code you have pasted in “functions.php” by:
add_filter( 'ntb_title_filter_ben', function ( $title, $args, $recent_ntb ) {
$has_secondary_title = function_exists( 'has_secondary_title' ) ? has_secondary_title($recent_ntb["ID"]) : '';
$get_secondary_title = function_exists( 'get_secondary_title' ) ? get_secondary_title($recent_ntb["ID"]) : '';
return $has_secondary_title ? '<p class="ntb14444l6gh"> '.$get_secondary_title .'</p><p class="ntb14444l6gh2">'. $title .'</p>' : $title;
}, 10, 3 );
3- in the plugin settings put this in “Style customization (css)”
.ntb14444l6gh {margin-top:18px !important;}
.ntb14444l6gh, .ntb14444l6gh2 {line-height: 8px !important;}
and adjust according to your current theme.
-4 in the plugin settings in “Settings of style” change Height,Raise or lower the text (line-height),height (Title),Raise or lower the title (line-height) to 80 and in “Enable style of mobile (recommended)” change Height,Raise or lower the text (line-height) to 80.
finally clear the cache, and the browser cache “Ctrl+f5”
-
This reply was modified 2 years, 10 months ago by Benaceur.
-
This reply was modified 2 years, 10 months ago by Benaceur.