Here’s my question: I have a problem with my Wordpress theme that didn’t occur previously. When I created the site I managed to edit a toggle title (using the tags h1, h2 and h3 to differentiate three different buttons) in the shortcode options. Now my titles have disappeared. I tried to modify the php code however I can’t solve the problem. Please help me!
you can see at: terraadopt.com
Here part of the class-toggle.php :
[php] function render_child( $args, $content = ‘’) {
$defaults = FusionCore_Plugin::set_shortcode_defaults(
array(
'open' => 'no',
'title' => '',
), $args
);
extract( $defaults );
self::$child_args = $defaults;
self::$child_args['toggle_class'] = '';
if( $open == 'yes' ) {
self::$child_args['toggle_class'] = 'in';
}
$this->collapse_id = substr( md5( sprintf( 'collapse-%s-%s', $this->accordian_counter, $this->collapse_counter ) ), 15 );
$html = sprintf( '<div %s><div %s><h4 %s><a %s><i %s></i>%s</a></h4></div><div %s><div %s>%s</div></div></div>', FusionCore_Plugin::attributes( 'fusion-panel panel-default' ),
FusionCore_Plugin::attributes( 'panel-heading' ), FusionCore_Plugin::attributes( 'panel-title toggle' ), FusionCore_Plugin::attributes( 'toggle-shortcode-data-toggle' ),
FusionCore_Plugin::attributes( 'toggle-shortcode-fa-icon' ), $title, FusionCore_Plugin::attributes( 'toggle-shortcode-collapse' ),
FusionCore_Plugin::attributes( 'panel-body toggle-content' ), do_shortcode($content));
$this->collapse_counter++;
return $html;
}[/php]
and here is part of the dynamyc_css.php code :
[php] if(isset($headings_font)):
?>
#main .reading-box h2,
#main h2,
.page-title h1,
.image .image-extras .image-extras-content h3,.image .image-extras .image-extras-content h3 a,
#main .post h2,
#sidebar .widget h3,
#wrapper .tab-holder .tabs li a,
.share-box h4,
.project-content h3,
.author .author_title,
.fusion-pricing-table .title-row,
.fusion-pricing-table .pricing-row,
.fusion-person .person-desc .person-author .person-author-wrapper,
.fusion-accordian .panel-title,
.fusion-accordian .panel-title a,
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6,
.ei-title h2, #header-sticky,#header .tagline,
table th,.project-content .project-info h4,
.woocommerce-success-message .msg,.product-title, .cart-empty,
#wrapper .fusion-megamenu-wrapper .fusion-megamenu-title,
.main-flex .slide-content h2, .main-flex .slide-content h3,
.fusion-modal .modal-title, .popover .popover-title,
.fusion-flip-box .flip-box-heading-back, .fusion-person .person-desc .person-author .person-name, .fusion-person .person-desc .person-author .person-title{
font-family:<?php echo $headings_font; ?>;
}[/php]
and
[php] .fusion-accordian .panel-title a{font-size:<?php echo $smof_data['h4_font_size']; ?>px;}
.share-box h4 {font-size:<?php echo $smof_data['h4_font_size']; ?>px;line-height:<?php echo $smof_data['h4_font_size']; ?>px;}
The problem is the h4 tag. I would like to edit also the tag (h1, h2 and h3) in the title form of the shortcode.