css 海狸生成器全宽
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 海狸生成器全宽相关的知识,希望对你有一定的参考价值。
<?php
// Template Name: Beaver Builder
add_filter( 'body_class', 'add_bb_body_class' );
/**
* Adds a css class to the body element
*
* @param array $classes the current body classes
* @return array $classes modified classes
*/
function add_bb_body_class( $classes ) {
$classes[] = 'fl-builder-full';
return $classes;
}
/**
* Add attributes for site-inner element, since we're removing 'content'.
*
* @param array $attributes Existing attributes.
* @return array Amended attributes.
*/
function site_inner_attr( $attributes ) {
// Add the attributes from .entry, since this replaces the main entry
$attributes = wp_parse_args( $attributes, genesis_attributes_entry( array() ) );
return $attributes;
}
add_filter( 'genesis_attr_site-inner', 'site_inner_attr' );
// Display Header
get_header();
// Display Content
the_post(); // sets the 'in the loop' property to true.
the_content();
// Display Comments
genesis_get_comments_template();
// Display Footer
get_footer();
.fl-builder-full .site-inner {
max-width: none;
padding-top: 0;
padding-left: 0;
padding-right: 0;
}
.fl-row-fixed-width {
max-width: 900px !important;
}
以上是关于css 海狸生成器全宽的主要内容,如果未能解决你的问题,请参考以下文章
css 创世纪主题 - 全宽包裹 - 海狸生成器
css 创世纪主题 - 全宽包裹 - 海狸生成器
css 海狸生成器按钮覆盖
php 海狸主题 - CSS版本缓存
css 海狸主题通过短代码添加搜索
css 海狸主题子菜单自动宽度