• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

KBordonaro

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 22 total)
1 2 →
  • Author
    Posts
  • February 22, 2013 at 2:07 pm in reply to: HELP! enews extended – "subscribe/go" button not displaying #22278
    KBordonaro
    Member

    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

    February 20, 2013 at 3:33 pm in reply to: Removing Page Titles | Pretty Pictures Theme #21811
    KBordonaro
    Member

    I'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');
    }
    }

    February 19, 2013 at 5:29 pm in reply to: Removing Page Titles | Pretty Pictures Theme #21502
    KBordonaro
    Member

    Thanks, 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

    February 19, 2013 at 5:21 pm in reply to: Minimum homepage – Use photos with blog titles #21499
    KBordonaro
    Member

    That 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

    February 19, 2013 at 5:06 pm in reply to: Minimum – Blog Pages/Featured Photo #21495
    KBordonaro
    Member

    Hi, 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

    February 12, 2013 at 6:56 pm in reply to: Minimum – Portfolio #19972
    KBordonaro
    Member

    Nevermind.

    February 12, 2013 at 6:27 pm in reply to: Removing Page Titles | Pretty Pictures Theme #19968
    KBordonaro
    Member

    Hi, 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

     

    http://www.kimberlybordonaro.com

    January 23, 2013 at 10:36 pm in reply to: Removing Page Titles | Pretty Pictures Theme #14237
    KBordonaro
    Member

    Thanks, Brad.

    If anyone has suggestions on how to the resolve this issue, please chime in. I'd greatly appreciate it. 🙂

    January 22, 2013 at 8:00 pm in reply to: Removing Page Titles | Pretty Pictures Theme #13956
    KBordonaro
    Member

    PS, You are so awesome John. I really appreciate your help.

    January 22, 2013 at 7:59 pm in reply to: Removing Page Titles | Pretty Pictures Theme #13955
    KBordonaro
    Member

    Okay,  I redid it. Now the header image is back to normal...

    But, the added code isn't removing the page titles.

    🙁

    January 22, 2013 at 7:56 pm in reply to: Removing Page Titles | Pretty Pictures Theme #13954
    KBordonaro
    Member

    I 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.

    January 22, 2013 at 5:07 pm in reply to: Removing Page Titles | Pretty Pictures Theme #13898
    KBordonaro
    Member

    Hmmmm....

    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

     

    January 22, 2013 at 4:59 pm in reply to: Removing Page Titles | Pretty Pictures Theme #13892
    KBordonaro
    Member

    @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!

    January 22, 2013 at 3:38 pm in reply to: Removing Page Titles | Pretty Pictures Theme #13853
    KBordonaro
    Member

    Thanks, 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

    January 22, 2013 at 3:10 pm in reply to: Read More | Pretty Pictures Theme #13841
    KBordonaro
    Member

    That worked! Thanks.

    January 22, 2013 at 2:04 pm in reply to: Read More | Pretty Pictures Theme #13814
    KBordonaro
    Member

    Thanks, 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 #13810
    KBordonaro
    Member

    SoZo, 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 #13801
    KBordonaro
    Member

    D-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 __( '&copy; 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 #13796
    KBordonaro
    Member

    /** 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 #13791
    KBordonaro
    Member

    I 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.

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 22 total)
1 2 →

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble