• 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

medk

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 1 post (of 1 total)
  • Author
    Posts
  • April 1, 2015 at 8:00 am in reply to: Snippets Not Working #146366
    medk
    Member

    Absolutely not the case, I have a very basic child theme with a very basic functions.php :

    `<?php
    // Start the engine

    add_action( 'genesis_setup','genesischild_theme_setup' );

    function genesischild_theme_setup() {

    //* Add HTML5 markup structure
    add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );

    //add_theme_support('html5');
    add_theme_support('genesis-responsive-viewport');
    add_theme_support('genesis-footer-widgets', 3);
    add_theme_support('custom-background');
    add_theme_support('post-thumbnails');

    }

    //* Add previous and next post links after entry
    add_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );

    //* Customize the credits
    add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' );
    function sp_footer_creds_text() {
    echo '<div class="creds">Copyright © ' . date('Y');
    echo ' - Delta sécurité et services - Av. Mohamed V Immeuble Lejri Gafsa 2100, Tunisie</p>';
    }

    // Move image above post title in Genesis Framework 2.0
    //remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    //add_action( 'genesis_entry_header', 'genesis_do_post_image', 8 );

    //* Remove the entry title (requires HTML5 theme support)
    //remove_action( 'genesis_entry_header', 'genesis_do_post_title' );

    //* Add a custom image size
    if ( function_exists( 'add_image_size' ) ) {
    add_image_size( 'new-size', 100, 100, true ); //(cropped)
    }
    add_filter('image_size_names_choose', 'my_image_sizes');
    function my_image_sizes($sizes) {
    $addsizes = array(
    'new-size' => __( 'New Size')
    );
    $newsizes = array_merge($sizes, $addsizes);
    return $newsizes;
    }

    //* Modify breadcrumb arguments.
    add_filter( 'genesis_breadcrumb_args', 'sp_breadcrumb_args' );
    function sp_breadcrumb_args( $args ) {
    $args['home'] = 'Home';
    $args['sep'] = ' / ';
    $args['list_sep'] = ', '; // Genesis 1.5 and later
    $args['prefix'] = '<div class="breadcrumb">';
    $args['suffix'] = '</div>';
    $args['heirarchial_attachments'] = true; // Genesis 1.5 and later
    $args['heirarchial_categories'] = true; // Genesis 1.5 and later
    $args['display'] = true;
    $args['labels']['prefix'] = '';
    $args['labels']['author'] = 'Archives for ';
    $args['labels']['category'] = 'Archives for '; // Genesis 1.6 and later
    $args['labels']['tag'] = 'Archives for ';
    $args['labels']['date'] = 'Archives for ';
    $args['labels']['search'] = 'Search for ';
    $args['labels']['tax'] = 'Archives for ';
    $args['labels']['post_type'] = 'Archives for ';
    $args['labels']['404'] = 'Not found: '; // Genesis 1.5 and later
    return $args;
    }

  • Author
    Posts
Viewing 1 post (of 1 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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