Forum Replies Created
-
AuthorPosts
-
February 22, 2013 at 2:07 pm in reply to: HELP! enews extended – "subscribe/go" button not displaying #22278KBordonaroMember
Thanks, Carrie.
I gave up on the enews widget and just coded it from this tutorial here:
http://www.techlila.com/how-to-add-newsletter-signup-box-genesis
-kb
KBordonaroMemberI'm such a coding rookie...
So I copy and paste the code you put (above my last reply), but I change the conditional tag to look like this:
add_action(
'get_header'
,
'child_remove_page_titles'
);
function
child_remove_page_titles() {
if
( !is_page() || is_single() ) {
remove_action(
'genesis_page_title'
,
'genesis_do_page_title'
);
}
}
KBordonaroMemberThanks, Brad!
I don't think I was clear...
I'm trying to remove the titles from the single pages, not single posts.
I still can't get it to work. 🙁
-Kimberly
KBordonaroMemberThat worked. I put in 'portfolio' instead of thumbnail, but do you know if there is a way to align the images in the center?
I see the code: 'grid_image_class' => 'alignnone',
Do I change it to 'aligncenter' ?
Thanks so much for your help, Chris!
-Kimberly
KBordonaroMemberHi, Chris!
Thanks so much for getting back to me.
There were crickets, so somehow I ended up figuring out how to disable featured images on the blog posts.
I appreciate your help and will check out the regenerate thumbnail pluggins for the future.
You rock,
Kimberly
KBordonaroMemberNevermind.
KBordonaroMemberHi, Brad.
I used the code for removing page titles... but now it's removed the blog post titles on the blog page.
So frustrating!
Any ideas on what to do?
Kimberly
KBordonaroMemberThanks, Brad.
If anyone has suggestions on how to the resolve this issue, please chime in. I'd greatly appreciate it. 🙂
KBordonaroMemberPS, You are so awesome John. I really appreciate your help.
KBordonaroMemberOkay, I redid it. Now the header image is back to normal...
But, the added code isn't removing the page titles.
🙁
KBordonaroMemberI don't get it...
I did exactly as you said and put back the original code, but it is still taking out my header image on blog page, including the front page.
KBordonaroMemberHmmmm....
That removes my header picture whenever I'm on a blog page.
My "about", "contact", and "amplify your brand" pages have my header picture.
The "homepage", "brandspiration" and "praise" pages (all blog formats) don't.
http://www.kimberlybordonaro.com
KBordonaroMember@SoZo... I don't see the snippet. Here's what I have:
/** Remove elements for post formats */
add_action( 'genesis_before_post', 'pp_remove_elements' );
function pp_remove_elements() {// Remove if post has quote format
if ( has_post_format( 'quote' ) ) {
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
remove_action( 'genesis_post_title', 'genesis_do_post_title' );
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
}// Remove if post has gallery format
elseif ( has_post_format( 'gallery' ) ) {
add_action( 'genesis_post_title', 'genesis_do_post_title' );
add_action( 'genesis_after_post_content', 'genesis_post_meta' );
}// Add back, as post has no format
else {
add_action( 'genesis_post_title', 'genesis_do_post_title' );
add_action( 'genesis_after_post_content', 'genesis_post_meta' );
}
@Brad - excellent plugin... except it also removed my header picture on the blog post pages. Strange!KBordonaroMemberThanks, Brad. Great tutorial!
I'm wondering if there is a way to remove titles from all my websites pages instead of doing it one by one for specific pages. I remember I did this on a previous child theme I used but I don't recall how.
BTW, I got the code from searching on this forum. There are quite a few posts, not sure which one I grabbed it from - but it was used in a few of them.
Cheers,
Kimberly
KBordonaroMemberThat worked! Thanks.
KBordonaroMemberThanks, Rick!
I'm not a coding wiz... I'm more like cheese whiz. 🙂
Just to clarify, should that code go in the functions or css style sheet?
Thanks,
Kimberly
January 22, 2013 at 1:41 pm in reply to: Removing Post Info Data – Not Working | Pretty Pictures ChildTheme #13810KBordonaroMemberSoZo, you rock my world.
Thank you!
January 22, 2013 at 1:22 pm in reply to: Removing Post Info Data – Not Working | Pretty Pictures ChildTheme #13801KBordonaroMemberD-oh! Blonde Moment... Here you go:
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );load_child_theme_textdomain( 'pictures', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'pictures' ) );
/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', __( 'Pretty Pictures Theme', 'pictures' ) );
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/pretty-pictures' );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'pp_add_viewport_meta_tag' );
function pp_add_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Register default layout setting */
genesis_set_default_layout( 'full-width-content' );/** Unregister layouts */
genesis_unregister_layout( 'content-sidebar' );
genesis_unregister_layout( 'sidebar-content' );
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );
genesis_unregister_layout( 'sidebar-content-sidebar' );/** Unregister sidebars */
unregister_sidebar( 'sidebar' );
unregister_sidebar( 'sidebar-alt' );/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'inner',
'footer-widgets',
'footer'
) );/** Add support for custom header */
add_theme_support( 'custom-header', array(
'default-image' => get_stylesheet_directory_uri() . '/images/header.jpg',
'flex-height' => true,
'flex-width' => true,
'header-text' => false,
'height' => 550,
'width' => 1600
) );/** Reposition the primary navigation */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );/** Unregister secondary navigation menu */
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'pictures' ) ) );/** Add support for post formats */
add_theme_support( 'post-formats', array(
'gallery',
'quote'
) );/** Remove elements for post formats */
add_action( 'genesis_before_post', 'pp_remove_elements' );
function pp_remove_elements() {// Remove if post has quote format
if ( has_post_format( 'quote' ) ) {
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
remove_action( 'genesis_post_title', 'genesis_do_post_title' );
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
}// Remove if post has gallery format
elseif ( has_post_format( 'gallery' ) ) {
add_action( 'genesis_post_title', 'genesis_do_post_title' );
add_action( 'genesis_after_post_content', 'genesis_post_meta' );
}// Add back, as post has no format
else {
add_action( 'genesis_before_post_content', 'genesis_post_info' );
add_action( 'genesis_post_title', 'genesis_do_post_title' );
add_action( 'genesis_after_post_content', 'genesis_post_meta' );
}}
global $current_class;
$current_class = 'odd';/** Add odd/even post class */
add_filter ( 'post_class' , 'pp_alt_post_class' );
function pp_alt_post_class ( $classes ) {
global $current_class;
$classes[] = $current_class;
$current_class = ( $current_class == 'odd' ) ? 'even' : 'odd';
return $classes;
}/** Customize the post meta function */
add_filter( 'genesis_post_meta', 'pp_post_meta_filter' );
function pp_post_meta_filter($post_meta) {return __( '© Copyright', 'pictures' ) . ' [post_author_posts_link]';
}
/** Modify the size of the Gravatar in the author box */
add_filter( 'genesis_author_box_gravatar_size', 'pp_author_box_gravatar_size' );
function pp_author_box_gravatar_size( $size ) {
return '76';
}/** Load Backstretch script and prepare images for loading */
add_action( 'wp_enqueue_scripts', 'pp_enqueue_scripts' );
function pp_enqueue_scripts() {wp_enqueue_script( 'stretch-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0', true );
wp_enqueue_script( 'stretch-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'stretch-backstretch' ), '1.0.0', true );}
add_action( 'wp_enqueue_scripts', 'pp_set_background_image' );
function pp_set_background_image() {$image = array( 'src' => get_header_image() );
wp_localize_script( 'stretch-backstretch-set', 'BackStretchImg', $image );
}
/** Register newsletter widget area */
genesis_register_sidebar( array(
'id' => 'newsletter',
'name' => __( 'Newsletter', 'custom-theme' ),
'description' => __( 'This is the newsletter section.', 'custom-theme' ),
) );/** Add the newsletter widget after the post content */
add_action( 'genesis_after_post_content', 'custom_add_newsletter_box' );
function custom_add_newsletter_box() {
if ( is_singular( 'post' ) )
genesis_widget_area( 'newsletter', array(
'before' => '<div id="enews widget-area">',
) );
}/** Add support for 2-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 2 );/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'inner',
'footer-widgets',
'footer'
) );
/** Remove the post info function */
remove_action( 'genesis_before_post_content', 'genesis_post_info' );January 22, 2013 at 1:18 pm in reply to: Removing Post Info Data – Not Working | Pretty Pictures ChildTheme #13796KBordonaroMember/** Remove the post info function */
remove_action( 'genesis_before_post_content', 'genesis_post_info' );January 22, 2013 at 1:04 pm in reply to: Removing Post Info Data – Not Working | Pretty Pictures ChildTheme #13791KBordonaroMemberI erased that snippet and I put in the other snippet from the tutorial, but the post info is still showing up.
I checked on a different browser for cache problems, too.
-
AuthorPosts