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
| /* ========================================================================== | |
| Additional Bootstrap Utilities | |
| ========================================================================== */ | |
| .pos-r { position: relative !important; } | |
| .pos-a { position: absolute !important; } | |
| .pos-f { position: fixed !important; } | |
| .w-sm { width: 25% !important; } | |
| .w-md { width: 50% !important; } |
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
| <?php | |
| /* Template Name: Landing Page */ | |
| define('BASE_URL',get_stylesheet_directory_uri()); | |
| define('POST_ID',$wp_query->queried_object->ID); | |
| // ACF Fields | |
| $acf = get_fields(POST_ID); |
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
| <?php | |
| if ( ! function_exists( 'theme_setup' ) ) : | |
| function theme_setup() { | |
| add_theme_support( 'title-tag' ); | |
| add_theme_support( 'post-thumbnails' ); | |
| register_nav_menus( array( | |
| 'primary' => esc_html__( 'Primary', 'theme' ), | |
| 'networks' => esc_html__( 'Social Icons', 'theme' ), | |
| ) ); | |
| } |
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
| <?php | |
| echo apply_filters( 'the_content', $acf['section2_before']->post_content); | |
| ?> | |
| <?php | |
| $items = $acf['section2']; | |
| for ($i=0; $i<sizeof($items); $i++) { | |
| echo '<article id="'.$items[$i]->ID.'" class="col-xs-4">'; | |
| echo apply_filters( 'the_content', $items[$i]->post_content); |
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
| { | |
| "name": "App", | |
| "icons": [ | |
| { | |
| "src": "\/android-icon-36x36.png", | |
| "sizes": "36x36", | |
| "type": "image\/png", | |
| "density": "0.75" | |
| }, | |
| { |
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
| # Creates a new blank theme based on underscores | |
| wp scaffold _s theme --activate --woocommerce | |
| # Remove bundled themes | |
| wp theme delete twentynineteen | |
| wp theme delete twentyseventeen | |
| wp theme delete twentysixteen | |
| # Reset default sidebar | |
| wp widget reset sidebar-1 |
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
| // Blank removes admin bar by defaults | |
| function blank_admin_bar() {return false;} | |
| add_filter( 'show_admin_bar' , 'blank_admin_bar'); | |
| // Blank disables the xml feeds | |
| function blank_disable_feed() {wp_die( '' );} | |
| add_action('do_feed', 'blank_disable_feed', 1); | |
| add_action('do_feed_rdf', 'blank_disable_feed', 1); | |
| add_action('do_feed_rss', 'blank_disable_feed', 1); | |
| add_action('do_feed_rss2', 'blank_disable_feed', 1); |
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
| <?php | |
| /* | |
| * Enable custom login style | |
| */ | |
| add_action("login_head", "my_login_head"); | |
| /* | |
| * Change login page style adding your custom css in $output | |
| */ |
OlderNewer