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 | |
function vg_time_ago() { | |
global $post; | |
$date = get_post_time('G', true, $post); | |
/** | |
'G' stands for Hour, 24-hour, without leading zeros |
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 // do not include this php tag | |
//* Remove links/menus from the admin bar | |
add_action( 'wp_before_admin_bar_render', 'vg_custom_admin_bar' ); | |
function vg_custom_admin_bar() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wp-logo'); |
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 // do not include this php tag | |
//* Add items on the admin bar | |
add_action( 'wp_before_admin_bar_render', 'vg_custom_admin_bar' ); | |
function vg_custom_admin_bar() { | |
global $wp_admin_bar; | |
$wp_admin_bar->add_menu( array( |
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 // do not include this php tag | |
//* Add items on the admin bar | |
add_action( 'wp_before_admin_bar_render', 'vg_custom_admin_bar' ); | |
function vg_custom_admin_bar() { | |
global $wp_admin_bar; | |
$wp_admin_bar->add_menu( array( |
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 // do not add this php tag | |
//* Add items on the admin bar | |
add_action( 'wp_before_admin_bar_render', 'vg_custom_admin_bar' ); | |
function vg_custom_admin_bar() { | |
global $wp_admin_bar; | |
$wp_admin_bar->add_menu( array( |
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 // do not add this php tag | |
//* Add items on the admin bar | |
add_action( 'wp_before_admin_bar_render', 'vg_custom_admin_bar' ); | |
function vg_custom_admin_bar() { | |
global $wp_admin_bar; | |
$wp_admin_bar->add_menu( array( |
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 | |
/****** | |
Header Right Logic for CPTs | |
************************************************ */ | |
genesis_register_sidebar( array( | |
'before_widget' => '<aside class="widget-area header-widget-area">', | |
'id' => 'header-right-offers', |
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 | |
/* | |
This was working fine, I was able to show Title of image with a hyperlink to image lightbox. | |
But suddenly from past a week site was down, when I checked error logs it stated | |
that the code (which was in my functions.php) is throwing error - PHP Parse error: syntax error, unexpected '[' | |
That error was in Line 24 of this code. | |
*/ |
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 the theme-opt.php file | |
require_once('theme-opt.php'); | |
/********************************** | |
* | |
* Replace Header Site Title with Inline Logo | |
* | |
* Fixes Genesis bug - when using static front page and blog page (admin reading settings) Home page is <p> tag and Blog page is <h1> tag |
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
.hide-excerpt { | |
display: none; | |
} | |
#powerTip { | |
max-width: 300px; | |
white-space: normal !important; | |
} |