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
@media screen and (min-width: 1281px) { | |
//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
<?php | |
/** | |
* Get the Alt text of a Featured Image | |
* | |
* And other image attributes | |
*/ | |
add_action('genesis_before_sidebar_widget_area', 'pgwp_genesis_before_sidebar_widget_area' ); | |
function pgwp_genesis_before_sidebar_widget_area () { |
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 | |
function get_excerpt($count, $post_id){ | |
$permalink = get_permalink($post_id); | |
$excerpt = get_post($post_id); | |
$excerpt = $excerpt->post_content; | |
$excerpt = strip_tags($excerpt); | |
$excerpt = substr($excerpt, 0, $count); | |
$excerpt = substr($excerpt, 0, strripos($excerpt, " ")); | |
$excerpt = $excerpt; | |
// Want a read more link and ellipsis, remove the line above this and replace it with the one below. |
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 | |
/** | |
* Enqueue scripts and styles. | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_global_enqueues() { | |
wp_enqueue_style( | |
'jquery-auto-complete', |
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 | |
/** | |
* Enqueue scripts and styles. | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_global_enqueues() { | |
wp_enqueue_style( | |
'jquery-auto-complete', |
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 | |
/** | |
* @package Awesome Support/Custom Fields | |
* @author ThemeAvenue <[email protected]> | |
* @license GPL-2.0+ | |
* @link http://themeavenue.net | |
* @copyright 2014 ThemeAvenue | |
* | |
* @wordpress-plugin | |
* Plugin Name: Awesome Support: My Custom Fields |
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
Step 1: | |
Go to: C:\Windows\System32\Drivers\etc\hosts | |
And add this to the bottom of the file: | |
============= | |
127.0.0.1 your.domain.com | |
============= | |
Step 2: | |
Go to [your XAMPP directory]/apache/conf/httpd-xampp.conf |
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 | |
/** | |
* Numeric Pagination Class | |
* @author Alexandre Plennevaux https://pixeline.be | |
* | |
* This class returns a list of LI > A. It is up to you to set the wrapping NAV > UL around your function call. | |
* | |
* @usage (setting specific classes) | |
* | |
* // Sets the css classes you want to be used for the output |
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 | |
function Convert_to_htmlTag($string, $tagSign='|') { | |
$firstSign = strpos($string, $tagSign); | |
$lastSign = strpos($string, $tagSign, $firstSign+1); | |
$strArray = str_split($string); | |
$replaceSigns = array($firstSign=>'<span class="se-s-color">', $lastSign=>'</span>'); | |
$replaceSigns = array_replace($strArray, $replaceSigns); | |
echo implode($replaceSigns); | |
} |
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
/** | |
* Escape translated strings with: | |
*/ | |
__( ‘Hello world’, ‘text-domain’ ); _e( ‘Hello world’, ‘text-domain’ );. | |
/** | |
* If there is no HTML use: | |
*/ | |
esc_html__( ‘Hello world’, ‘text-domain’ ); esc_html_e( ‘Hello world’, ‘text-domain’ ); |