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
| .sp-hero { | |
| min-height: 500px; | |
| background-position: center top; | |
| background-size: cover; | |
| width: 100%; | |
| background-repeat: no-repeat; | |
| position: relative; | |
| h1 { | |
| color: $white; |
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 | |
| /** | |
| * Register widget area. | |
| * | |
| * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar | |
| */ | |
| function strappress_widgets_init() { | |
| register_sidebar( array( | |
| 'name' => esc_html__( 'Sidebar', 'strappress' ), | |
| 'id' => '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
| <?php | |
| $myvals = get_post_meta(get_the_ID()); | |
| foreach($myvals as $key=>$val) | |
| { | |
| echo $key . ' : ' . $val[0] . '<br/>'; | |
| } | |
| ?> |
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
| if ( class_exists('Kirki') ) { | |
| Kirki::add_config( 'strappress_theme', array( | |
| 'capability' => 'edit_theme_options', | |
| 'option_type' => 'theme_mod', | |
| ) ); | |
| /* Add Bootswatch to Colors Section */ | |
| Kirki::add_field( 'strappress_theme', array( | |
| 'type' => 'radio-image', | |
| 'settings' => 'bootswatch_css', |
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
| /** | |
| * Find the first period in the excerpt and remove everything after it. | |
| * | |
| * | |
| * @param string $excerpt The post excerpt. | |
| */ | |
| function end_with_sentence($excerpt) { | |
| return substr($excerpt,0,strpos($excerpt,'.')+1); | |
| } | |
| add_filter( 'the_excerpt', 'end_with_sentence'); |
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
| the_posts_pagination ( | |
| array( | |
| 'prev_text' => '<i class="fa fa-arrow-left" aria-hidden="true"></i><span class="screen-reader-text">' . __( 'Previous Page', 'textdomain' ) . '</span>', | |
| 'next_text' => '<span class="screen-reader-text">' . __( 'Next Page', 'textdomain' ) . '</span><i class="fa fa-arrow-right" aria-hidden="true"></i>', | |
| ) | |
| ); |
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
| .logo a img { | |
| max-width: 250px; | |
| } |