问题描述
该网站为https://sunstellar.in/blogs 我想将Visual composer post grid的博客标题从h4更改为h2标签。 我查找了所有与“网格项”特别相关的可视作曲器文件,但是没有运气。我认为唯一可以更改的文件是网格项目发布数据文件。这是文件中的完整代码
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $atts
* Shortcode class
* @var WPBakeryShortCode_Vc_Gitem_Post_Data $this
*/
$output = $text = $google_fonts = $font_container = $el_class = $css = $link_html = '';
$font_container_data = array();
$google_fonts_data = array();
extract( $this->getAttributes( $atts ) );
extract( $this->getStyles( $el_class,$css,$google_fonts_data,$font_container_data,$atts ) );
$data_source = $this->getDataSource( $atts );
if ( isset( $atts['link'] ) && '' !== $atts['link'] && 'none' !== $atts['link'] ) {
$link_html = vc_gitem_create_link( $atts );
}
$use_custom_fonts = isset( $atts['use_custom_fonts'] ) && 'yes' === $atts['use_custom_fonts'];
$settings = get_option( 'wpb_js_google_fonts_subsets' );
$subsets = '';
if ( is_array( $settings ) && ! empty( $settings ) ) {
$subsets = '&subset=' . implode( ',',$settings );
}
$content = '{{ post_data:' . esc_attr( $data_source ) . ' }}';
if ( ! empty( $link_html ) ) {
$content = '<' . $link_html . '>' . $content . '</a>';
}
$css_class .= ' vc_gitem-post-data';
if ( $data_source ) {
$css_class .= ' vc_gitem-post-data-source-' . $data_source;
}
if ( $use_custom_fonts && ! empty( $google_fonts_data ) && isset( $google_fonts_data['values']['font_family'] ) ) {
wp_enqueue_style( 'vc_google_fonts_' . vc_build_safe_css_class( $google_fonts_data['values']['font_family'] ),'https://fonts.googleapis.com/css?family=' . $google_fonts_data['values']['font_family'] . $subsets,[],WPB_VC_VERSION );
}
$output .= '<div class="' . esc_attr( $css_class ) . '" >';
$style = '';
if ( ! empty( $styles ) ) {
$style = 'style="' . esc_attr( implode( ';',$styles ) ) . '"';
}
$output .= '<' . $font_container_data['values']['tag'] . ' ' . $style . ' >';
$output .= $content;
$output .= '</' . $font_container_data['values']['tag'] . '>';
$output .= '</div>';
return $output;
我已经检查了几乎所有文件,但我不知道它是如何为博客标题选择h4标签的。有人可以帮我吗?有什么办法可以将任何代码添加到functions.PHP中,我们可以将h4标签覆盖为h2标签吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)