This file contains 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
<?php | |
/** | |
* File Class | |
* | |
* Helper class to locate and load files in child/parent | |
* theme only if they exist. | |
* | |
* Rename "Themeslug" according to your needs. | |
* Edit according to your needs... | |
*/ |
This file contains 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
<?php | |
/** | |
* We need to load this file only if it exists: | |
* - first checking in child theme, | |
* - then trying parent theme. | |
*/ | |
$file_path_relative = 'assets/css/for-processing.css'; | |
/** |
This file contains 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
<?php | |
/** | |
* Creates section divs in the content area. | |
* | |
* This is a front-end solution only. | |
* Splits content into section containers, similar to Medium.com. | |
* Section split occurs on Gutenberg wide and full aligned blocks. | |
* | |
* Copy this function into your WordPress theme's `functions.php` file |
This file contains 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
<?php | |
// IMPORTANT UPDATE 20190307: | |
// Since WordPress 5.0.0 we can actually use much simpler solution: | |
/** | |
* Applies wrapper div around aligned blocks. | |
* | |
* Copy this function into your WordPress theme's `functions.php` file | |
* and change the `themeprefix` accordingly. |
This file contains 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
/** | |
* Colors. | |
*/ | |
body { | |
background: #222; | |
color: #ccc; | |
} | |
h1, h2, h3, h4, h5, h6 { |
This file contains 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
/** | |
* Basic elements spacing. | |
*/ | |
p:first-child, | |
h1:first-child, | |
h2:first-child, | |
h3:first-child, | |
h4:first-child, | |
h5:first-child, |
This file contains 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
<?php | |
// START COPYING HERE... | |
// Requires Beaver Builder v2.1.4 and newer! | |
/** | |
* Populates CSS classes dropdown selector with custom classes selection. | |
* | |
* Hooks onto `fl_builder_field_js_config` filter hook. See Beaver Builder code directly | |
* for filter hook attributes (in `classes/class-fl-builder-ui-settings-forms.php` file). |
This file contains 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
<p style="width: 48%; float: left;" class="fullwidth"> | |
<label class="screen-reader-text" for="form-name">Your name</label> | |
[text name id:form-name placeholder "Your name"] | |
</p> | |
<p style="width: 48%; float: right;" class="fullwidth"> | |
<label class="screen-reader-text" for="form-email">Your email</label> | |
[email email id:form-email placeholder "Your email"] | |
</p> | |
<p style="clear: both;" class="fullwidth"> | |
<label class="screen-reader-text" for="form-message">Your message</label> |
This file contains 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
<div class="laptop-container"> | |
<img src="http://placehold.it/640x360/3333cc/ffffff" alt="" /> | |
</div> |
NewerOlder