Forum Replies Created
-
AuthorPosts
-
JA ArmiraMember
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… #211021JA ArmiraMemberThank 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… #211019JA ArmiraMemberThank 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… #211020JA ArmiraMemberThank 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!!
-
AuthorPosts