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
| Array | |
| ( | |
| [0] => Kavin | |
| [1] => Arbaz | |
| [2] => Salim | |
| [3] => Neha | |
| [4] => Nisha | |
| ) |
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
| <!-- Load the slider with "slider-name" alias every time --> | |
| <?php putRevSlider("slider-name") ?> | |
| <!-- Load the slider with "slider-name" alias only on the homepage only --> | |
| <?php putRevSlider("slider-name", "homepage") ?> | |
| <!-- Load the slider with "slider-name" alias only on a specific page (page id should be entered) --> | |
| <?php putRevSlider("slider-name", "2") ?> | |
| <!-- Load the slider with "slider-name" alias only on a range of pages 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 | |
| //* do not include the opening php tag. Just copy below code. | |
| fundction ec_custom_post_navigation() | |
| { | |
| ?> | |
| <div class="prev_next"> | |
| <div class="nav_left"> | |
| <span class="prev">Previous Post</span> <?php previous_post_link('%link', '%title'); ?> |
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
| .prev_next | |
| { | |
| overflow: auto; | |
| margin: 10px 0; | |
| padding: 5px 0; | |
| } | |
| .prev_next span.next | |
| { | |
| border-bottom: 1px solid #f4f4f4; | |
| font-weight:600; |
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 | |
| $array = str_split("0123456789bcdfghjkmnpqrstvwxyz"); |
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 | |
| $array = str_split("aabbccdd", 2); | |
| // $array[0] = aa | |
| // $array[1] = bb | |
| // $array[2] = cc etc ... |
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 | |
| $string = "hello"; | |
| echo $string[1]; | |
| // outputs "e" |
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 | |
| //* Don't include the opening php tag. | |
| //* Remove Genesis menu link | |
| remove_theme_support( 'genesis-admin-menu' ); |
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 | |
| // do not include the open tag. Just copy the below shown code | |
| //* Modify the Genesis content limit read more link | |
| add_filter( 'get_the_content_more_link', 'ec_read_more_link' ); | |
| function ec_read_more_link() { | |
| return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading...]</a>'; | |
| } |
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 | |
| //*Do not include the open php tag. | |
| //* Modify the length of post excerpts in WP Themes | |
| add_filter( 'excerpt_length', 'ec_excerpt_length' ); | |
| function ec_excerpt_length( $length ) { | |
| return 45; // pull first 45 words | |
| } |