• 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

simon.glencross

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 8, 2015 at 5:06 pm in reply to: Blog Page Layout #143723
    simon.glencross
    Member

    I really don't want to become a member and pay a monthly subscription when I have already paid for the templates and genesis. Does anyone else have any advice or suggestions - Thank you

    March 8, 2015 at 4:31 pm in reply to: Blog Page Layout #143717
    simon.glencross
    Member

    Umm I have this installed already but it would seem it has no effect on the blog page?

    March 8, 2015 at 4:16 pm in reply to: Blog Page Layout #143711
    simon.glencross
    Member

    I think two would be fine Thank you

    March 8, 2015 at 3:32 pm in reply to: HELP #143702
    simon.glencross
    Member

    Victor, I just wanted to say a big Thank You for your assistance it is very much appreciated. All is now working perfectly!

    March 6, 2015 at 6:52 pm in reply to: HELP #143541
    simon.glencross
    Member

    Victor thank you for your assistance, I know very little re coding. I have made the amendment to the output.php file but I am now getting the following error

    Parse error: syntax error, unexpected end of file in /homepages/46/d87837406/htdocs/NXT/wp-content/themes/altitude-pro/lib/output.php on line 85

    this is the content of my output.pho file

    <?php
    /*
    * Adds the required CSS to the front end.
    */

    add_action( 'wp_enqueue_scripts', 'altitude_css' );
    /**
    * Checks the settings for the images and background colors for each image
    * If any of these value are set the appropriate CSS is output
    *
    * @since 1.0
    */
    function altitude_css() {

    $handle = defined( 'CHILD_THEME_NAME' ) && CHILD_THEME_NAME ? sanitize_title_with_dashes( CHILD_THEME_NAME ) : 'child-theme';

    $color = get_theme_mod( 'altitude_accent_color', altitude_customizer_get_default_accent_color() );

    $opts = apply_filters( 'altitude_images', array( '1', '3', '5', '7' ) );

    $settings = array();

    foreach( $opts as $opt ){
    $settings[$opt]['image'] = preg_replace( '/^https?:/', '', get_option( $opt .'-altitude-image', sprintf( '%s/images/bg-%s.jpg', get_stylesheet_directory_uri(), $opt ) ) );
    }

    $css = '';

    foreach ( $settings as $section => $value ) {

    $background = $value['image'] ? sprintf( 'background-image: url(%s);', $value['image'] ) : '';

    if( is_front_page() ) {
    $css .= ( ! empty( $section ) && ! empty( $background ) ) ? sprintf( '.front-page-%s { %s }', $section, $background ) : '';
    }

    $css = '';

    foreach ( $settings as $section => $value ) {

    $background = $value['image'] ? sprintf( 'background-image: url(%s);', $value['image'] ) : '';

    if( is_page_template( 'new-page.php' ) ) {
    $css .= ( ! empty( $section ) && ! empty( $background ) ) ? sprintf( '.new-page-%s { %s }', $section, $background ) : '';
    }

    }

    $css .= ( altitude_customizer_get_default_accent_color() !== $color ) ? sprintf( '
    a,
    .entry-title a:hover,
    .image-section a:hover,
    .image-section .featured-content .entry-title a:hover,
    .site-footer a:hover {
    color: %1$s;
    }

    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"],
    .archive-pagination li a:hover,
    .archive-pagination .active a,
    .button,
    .footer-widgets,
    .widget .button {
    background-color: %1$s;
    }

    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"],
    .button,
    .front-page input:focus,
    .front-page textarea:focus,
    .widget .button {
    border-color: %1$s;
    }
    ', $color ) : '';

    if( $css ){
    wp_add_inline_style( $handle, $css );
    }

    March 4, 2015 at 4:29 am in reply to: Altitude Pro home page styling on other pages #143152
    simon.glencross
    Member

    I have tried to implement the above and I am almost there! BUT when I try and add the end to to the output.php file I am getting the following error

    Fatal error: Call to undefined function is_new_page() in /homepages/46/d87837406/htdocs/NXT/wp-content/themes/altitude-pro/lib/output.php on line 33

    I have the following in the output.php file

    $css = '';

    foreach ( $settings as $section => $value ) {

    $background = $value['image'] ? sprintf( 'background-image: url(%s);', $value['image'] ) : '';

    if( is_new_page() ) {
    $css .= ( ! empty( $section ) && ! empty( $background ) ) ? sprintf( '.new-page-%s { %s }', $section, $background ) : '';
    }

    if( is_front_page() ) {
    $css .= ( ! empty( $section ) && ! empty( $background ) ) ? sprintf( '.front-page-%s { %s }', $section, $background ) : '';
    }

    What am I missing!?

    Thank you in advance for any assistance.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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