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 | |
$posts = get_field('wp_forms'); | |
if( $posts ): | |
foreach( $posts as $post): | |
$form_id = get_the_ID(); | |
echo do_shortcode('[wpforms id="' . $form_id . '"]'); | |
endforeach; | |
wp_reset_postdata(); | |
endif; |
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 | |
$columnNumber++ | |
?> | |
<div class="et_pb_row et_pb_row_<?php echo $columnNumber++ ?> et_pb_gutters2 wcf_gallery_row"> | |
<div class="et_pb_column et_pb_column_4_4 et_pb_column_<?php echo $columnNumber++ ?>"> | |
<div class="et_pb_module et_pb_gallery et_pb_gallery_<?php echo $columnNumber++ ?> et_pb_gallery_grid et_pb_bg_layout_light clearfix"> | |
<div class="et_pb_gallery_items et_post_gallery clearfix" data-per_page="20"> | |
<?php |
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 | |
add_action( 'admin_head', 'hide_editor' ); | |
function hide_editor() { | |
$template_file = basename( get_page_template() ); | |
if($template_file == 'template-name.php'){ | |
remove_post_type_support('page', 'editor'); | |
} | |
} |
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
// This shortcode is placed in any template file | |
<?php echo do_shortcode("[featured-project]"); ?> | |
// This shortcode is placed in WordPress page | |
[featured-project] |
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 | |
add_action( 'wp_enqueue_scripts', 'my_assets' ); | |
function my_assets() { | |
wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'fancy-box-css', get_stylesheet_directory_uri() . '/css/jquery.fancybox.css' ); | |
wp_enqueue_script( 'fancy-box-script', get_stylesheet_directory_uri() . '/js/jquery.fancybox.js', array( 'jquery' ) ); | |
} |
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_bullets ul { | |
padding-bottom: 20px; | |
} | |
.custom_bullets li { | |
padding-left: 15px; | |
padding-bottom: 0em; | |
list-style-type: 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
<?php | |
add_action( 'wp_enqueue_scripts', 'my_child_theme_scripts' ); | |
function my_child_theme_scripts() { | |
wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' ); | |
} |
NewerOlder