Skip to content

Instantly share code, notes, and snippets.

add_action('admin_init','pro_convert_seo_values');
function pro_convert_seo_values()
{
$args = array(
'post_status' => 'publish',
'posts_per_page' => -1,
'post_type' => 'page'
);
add_action('after_setup_theme','generate_remove_google_fonts');
function generate_remove_google_fonts()
{
remove_action('wp_head','generate_display_google_fonts', 0);
}
add_action('wp_head','generate_display_custom_google_fonts');
function generate_display_custom_google_fonts()
{
?>
$name = md5(site_url());
$name = substr($name, 0, 15);
if (!empty($_GET[$name . '-css']) == 'css') {
header('Content-Type: text/css');
$generate_settings = get_option( 'generate_settings', generate_get_defaults() );
$space = ' ';
// Start the magic
$visual_css = array (
add_theme_support( 'woocommerce' );
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
<?php
/**
* Generate the CSS in the <head> section using the Theme Customizer
* @since 0.1
*/
add_action('generate_head_css','generate_your_css');
if ( !function_exists( 'generate_your_css' ) ) :
function generate_advanced_css()
{
$your_option = get_option( 'your_saved_db_entry' );
<span style="display:block;font-size:20px;">youremail@youremail.com</span>
<span style="display:block;font-size:20px;"><a href="tel:1234567">1234567</a></span>
add_action('admin_notices','themeslug_import_settings');
function themeslug_import_settings()
{
global $pagenow;
if ( is_admin() && $pagenow == "themes.php" && isset( $_GET['activated'] ) ) {
?>
<div class="updated below-h2">
<p style="font-size: 18px;">
<?php _e('<strong>You\'re almost done!</strong> To import settings for this theme,');?> <a href="<?php echo admin_url('themes.php');?>?slug=installchild"><?php _e('click here','generate');?></a>.
add_action('admin_notices','themeslug_import_settings');
function themeslug_import_settings()
{
global $pagenow;
if ( is_admin() && $pagenow == "themes.php" && isset( $_GET['activated'] ) ) {
?>
<div class="updated below-h2">
<p style="font-size: 18px;">
<?php _e('<strong>You\'re almost done!</strong> To import settings for this theme,');?> <a href="<?php echo admin_url('themes.php');?>?slug=installchild"><?php _e('click here','generate');?></a>.
<?php
if ( is_page( 'the-page-slug' ) ) :
?>
THIS WILL SHOW UP ON THE ABOVE PAGE!
<?php
endif;
?>
<?php
if ( is_page( 'another-page-slug' ) ) :
blockquote p:after {
content: "" !important;
font-size: 0px;
position: absolute;
bottom: 3px;
color: #7a7a7a;
padding-left: 0px;
}
blockquote:before {