Last active
August 30, 2016 19:19
-
-
Save grantambrose/3963107bc1b91fdb525bdb68b07a395e to your computer and use it in GitHub Desktop.
Overriding a default Beaver Builder module to create a unique Blog Post Layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'align' => array( | |
'type' => 'select', | |
'label' => __('Alignment', 'fl-builder'), | |
'default' => 'center', | |
'options' => array( | |
'left' => __('Left', 'fl-builder'), | |
'center' => __('Center', 'fl-builder'), | |
'right' => __('Right', 'fl-builder'), | |
'full-width' => __('Full-width', 'fl-builder') | |
) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Make the content area on Single Posts narrower ONLY if they are edited using Beaver Builder */ | |
.single.fl-builder .fl-content{max-width:770px;margin-left:auto;margin-right:auto;float:none;padding-left:0;padding-right:0;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Extend Photo Modules with the new Alignment: Full-width option outside the narrow content area | |
ONLY on larger devices */ | |
@media only screen and (min-width: 1200px) { | |
.fl-photo-align-full-width{margin-left: -160px; margin-right: -160px;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment