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 get_template_part('parts/name_section'); ?> |
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 $image = get_field('background_img'); ?> | |
<section class="name_section" <?php bg($image) ?>></section> |
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
.custom_button { | |
line-height: 35px; | |
padding: 0 20px; | |
border-radius: 4px; | |
background: #954b52; | |
color: black; | |
display: inline-block; | |
text-decoration: none; | |
} |
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
// Callback function to insert 'styleselect' into the $buttons array | |
function my_mce_buttons_2( $buttons ) { | |
array_unshift( $buttons, 'styleselect' ); | |
return $buttons; | |
} | |
// Register our callback to the appropriate filter | |
add_filter( 'mce_buttons_2', 'my_mce_buttons_2' ); | |
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
// Add Google fonts to editor | |
add_action( 'after_setup_theme', 'leaven_editor_fonts' ); | |
function leaven_editor_fonts() { | |
$font_url = str_replace( ',', '%2C', '//fonts.googleapis.com/css?family=Open+Sans:300,400,700|Lora:400italic,700italic' ); | |
add_editor_style( $font_url ); | |
} |
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
// Create a function that adds the font selector | |
if (!function_exists('PREFIX_mce_buttons')) { | |
function PREFIX_mce_buttons($buttons) | |
{ | |
array_unshift($buttons, 'fontsizeselect'); // Add Font Size Select | |
return $buttons; | |
} | |
} | |
// Hook the function the mce buttons event |
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 | |
$form_object = get_field('your_form_field'); | |
echo do_shortcode('[gravityform id="' . $form_object['id'] . '" title="true" description="true" ajax="true"]'); | |
?> |
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
AOS.init({ disable: 'mobile' }); |
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
<script> | |
window.onscroll = function() {myFunction()}; | |
var header = document.getElementById("header"); | |
var sticky = header.offsetTop; | |
function myFunction() { | |
if (window.pageYOffset > sticky) { | |
header.classList.add("sticky"); | |
} else { |
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
a{ | |
display: inline-block; | |
position: relative; | |
text-decoration: none; | |
} | |
a::before{ | |
display: block; | |
position: absolute; | |
content: ""; |
NewerOlder