• 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

JA Armira

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 14, 2017 at 12:43 pm in reply to: styling question on this home page #211474
    JA Armira
    Member

    Came too late to answer, but yes your pictures above are 640px by 640px meanwhile the one below it's 540px
    Glad you found the solution!

    September 1, 2017 at 9:39 am in reply to: Fatal error: Cannot redeclare theme_setup() (previously declared in… #211021
    JA Armira
    Member

    Thank you for the response, braddalto!
    Since i posted, i have been trying to find a solution, and i understand there is a duplicate function, but i can't see where or how it is duplicated.
    Here is the code that is referenced( now on different lines: 68 and 75) :

    //* Enqueue Scripts
    add_action( 'wp_enqueue_scripts', 'gdpros_load_scripts' );
    function gdpros_load_scripts() {
    
    //* Line 68
    	wp_enqueue_script( 'gdpros-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    
    	wp_enqueue_style( 'dashicons' );
    
    	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic', array(), '1.0.0' );
    	wp_enqueue_style('google-fonts','//fonts.googleapis.com/css?family=Gruppo|Josefin+Sans:400,300italic,300,100,100italic|Josefin+Slab:100,100italic,300,300italic,400,600|Poiret+One|Quicksand:400,300,700', array(), '1.0.0');
    
    } //* Line 75
    
    //* Enqueue Backstretch script and prepare images for loading
    add_action( 'wp_enqueue_scripts', 'gdpros_enqueue_backstretch_scripts' );
    function gdpros_enqueue_backstretch_scripts() {
    
    	$image = get_option( 'gdpros-backstretch-image', sprintf( '%s/images/freelance-wordpress-developer.jpg',  get_stylesheet_directory_uri() ) );
    
    	//* Load scripts only if custom backstretch image is being used
    	if ( ! empty( $image ) ) {
    
    		wp_enqueue_script( 'gdpros-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
    		wp_enqueue_script( 'gdpros-backstretch-set', get_bloginfo( 'stylesheet_directory' ).'/js/backstretch-set.js' , array( 'jquery', 'gdpros-backstretch' ), '1.0.0' );
    
    		wp_localize_script( 'gdpros-backstretch-set', 'BackStretchImg', array( 'src' => str_replace( 'http:', '', $image ) ) );
    
    	}
    
    }

    Any help appreciated!!

    September 1, 2017 at 9:37 am in reply to: Fatal error: Cannot redeclare theme_setup() (previously declared in… #211019
    JA Armira
    Member

    Thank you for the response, braddalto!
    Since i posted, i have been trying to find a solution, and i understand there is a duplicate function, but i can't see where or how it is duplicated.
    Here is the code that is referenced( now on different lines: 68 and 75) :

    //* Enqueue Scripts
    add_action( 'wp_enqueue_scripts', 'gdpros_load_scripts' );
    function gdpros_load_scripts() {
    //* Line 68
    	wp_enqueue_script( 'gdpros-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    
    	wp_enqueue_style( 'dashicons' );
    
    	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic', array(), '1.0.0' );
    	wp_enqueue_style('google-fonts','//fonts.googleapis.com/css?family=Gruppo|Josefin+Sans:400,300italic,300,100,100italic|Josefin+Slab:100,100italic,300,300italic,400,600|Poiret+One|Quicksand:400,300,700', array(), '1.0.0');
    
    } //* Line 75
    
    //* Enqueue Backstretch script and prepare images for loading
    add_action( 'wp_enqueue_scripts', 'gdpros_enqueue_backstretch_scripts' );
    function gdpros_enqueue_backstretch_scripts() {
    
    	$image = get_option( 'gdpros-backstretch-image', sprintf( '%s/images/freelance-wordpress-developer.jpg',  get_stylesheet_directory_uri() ) );
    
    	//* Load scripts only if custom backstretch image is being used
    	if ( ! empty( $image ) ) {
    
    		wp_enqueue_script( 'gdpros-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
    		wp_enqueue_script( 'gdpros-backstretch-set', get_bloginfo( 'stylesheet_directory' ).'/js/backstretch-set.js' , array( 'jquery', 'gdpros-backstretch' ), '1.0.0' );
    
    		wp_localize_script( 'gdpros-backstretch-set', 'BackStretchImg', array( 'src' => str_replace( 'http:', '', $image ) ) );
    
    	}
    
    }

    Any help appreciated!! It looks like i duplicated the post, sorry about that!

    September 1, 2017 at 9:37 am in reply to: Fatal error: Cannot redeclare theme_setup() (previously declared in… #211020
    JA Armira
    Member

    Thank you for the response, braddalto!
    Since i posted, i have been trying to find a solution, and i understand there is a duplicate function, but i can't see where or how it is duplicated.
    Here is the code that is referenced( now on different lines: 68 and 75) :

    //* Line 68
    	wp_enqueue_script( 'gdpros-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
    
    	wp_enqueue_style( 'dashicons' );
    
    	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic', array(), '1.0.0' );
    	wp_enqueue_style('google-fonts','//fonts.googleapis.com/css?family=Gruppo|Josefin+Sans:400,300italic,300,100,100italic|Josefin+Slab:100,100italic,300,300italic,400,600|Poiret+One|Quicksand:400,300,700', array(), '1.0.0');
    
    } //* Line 75
    
    //* Enqueue Backstretch script and prepare images for loading
    add_action( 'wp_enqueue_scripts', 'gdpros_enqueue_backstretch_scripts' );
    function gdpros_enqueue_backstretch_scripts() {
    
    	$image = get_option( 'gdpros-backstretch-image', sprintf( '%s/images/freelance-wordpress-developer.jpg',  get_stylesheet_directory_uri() ) );
    
    	//* Load scripts only if custom backstretch image is being used
    	if ( ! empty( $image ) ) {
    
    		wp_enqueue_script( 'gdpros-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
    		wp_enqueue_script( 'gdpros-backstretch-set', get_bloginfo( 'stylesheet_directory' ).'/js/backstretch-set.js' , array( 'jquery', 'gdpros-backstretch' ), '1.0.0' );
    
    		wp_localize_script( 'gdpros-backstretch-set', 'BackStretchImg', array( 'src' => str_replace( 'http:', '', $image ) ) );
    
    	}
    
    }

    Any help appreciated!!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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