/*CAROUSEL ARROWS*/ .wpex-carousel__arrow-icon svg, .wpex-carousel__arrow-icon.wpex-icon, .wpex-carousel__arrow svg /*, .wpex-slider .sp-arrow-inner*/ { display: none; } .wpex-carousel__arrow:where(:not(.theme-button))…
Shortcode to show current page title
function title_func($atts) {
extract( shortcode_atts( array(
'num_words' => 20,
), $atts ) );
//$title = get_the_title(get_the_ID());
$title = substr(get_the_title(), 0, $num_words );
$length = strlen(get_the_title());
if ($length > $num_words) {
$more = "…";
} else {
$more = "";
}
//$link = get_permalink(get_the_ID());
//return '<a href="' . $link . '">' . wp_trim_words($title, $num_words) . '</a>';
return $title . $more ;
}
add_shortcode('title','title_func');