• 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

James D

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
  • June 24, 2015 at 10:29 am in reply to: Custom Post Order #157415
    James D
    Member

    I guess I was missing a brace.

    Someone above says my 'ticks' are wrong. Sorry I don't know what a 'tick' is.

    I was editing the code in dreamweaver 2015

    jim

    June 22, 2015 at 2:39 pm in reply to: Custom Post Order #157206
    James D
    Member

    This is the last few lines of the php code. By the way, I am really out of my element with php. I can find my way through css without too much problem, but the php stuff loses me.

    Here is the code as I pasted it in my file from the * Register Widget Area * on down:

    //* Register widget areas

    genesis_register_sidebar( array(

    'id' => 'home-about',

    'name' => __( 'Home - About','mpp' ),

    'description' => __( 'This is the about section of the homepage.','mpp' ),

    ) );

    genesis_register_sidebar( array(

    'id' => 'home-portfolio',

    'name' => __( 'Home - Portfolio','mpp' ),

    'description' => __( 'This is the portfolio section of the homepage.','mpp' ),

    ) );

    genesis_register_sidebar( array(

    'id' => 'home-services',

    'name' => __( 'Home - Services','mpp' ),

    'description' => __( 'This is the Services section of the homepage.','mpp' ),

    ) );

    genesis_register_sidebar( array(

    'id' => 'home-blog',

    'name' => __( 'Home - Blog','mpp' ),

    'description' => __( 'This is the Blog section of the homepage.','mpp' ),

    ) );

    function modify_query_order( $query ) {

    if ( $query->is_home() && $query->is_main_query() ) {

    $query->set( 'orderby', 'title' );

    $query->set( 'order', 'ASC' );

    }

    }

    add_action( 'pre_get_posts', 'modify_query_order' );

    I am getting errors in Dreamweaver on these 3 lines

    if ( $query->is_home() && $query->is_main_query() ) {

    $query->set( 'orderby', 'title' );

    $query->set( 'order', 'ASC' );

    Jim

    June 22, 2015 at 2:31 pm in reply to: Custom Post Order #157204
    James D
    Member

    uhmm. yeah... I added that code to the very end of my functions.php

    function modify_query_order( $query ) {
    if ( $query->is_home() && $query->is_main_query() ) {
    $query->set( 'orderby', 'title' );
    $query->set( 'order', 'ASC' );
    }
    }
    add_action( 'pre_get_posts', 'modify_query_order' );

    and it broke my site.

    June 22, 2015 at 1:10 pm in reply to: Custom Post Order #157185
    James D
    Member

    Oh boy, that is above my pay grade. I don't know what that means.

    Just when I think I am understanding this stuff, I realize that I have no idea how most of this stuff works.

    Jim

    June 19, 2015 at 2:35 pm in reply to: Modern Portfolio Pro: Image Hover Change #156843
    James D
    Member

    Solved it! BAM!

    #blog img, #portfolio img {
    /* this tag controls the color and opacitiy of the feature image*/
    margin-bottom: 16px;
    opacity: 1;
    margin-bottom: 1.6rem;
    border: 4px solid #830E20;
    }
    #blog img:hover, #portfolio img:hover {
    /* this tag controls the color and opacitiy of the feature image HOVER*/
    opacity: .9;
    border-image-width: 2px;
    border: 4px solid #65B5F0;
    }

    June 19, 2015 at 2:12 pm in reply to: Modern Portfolio Pro: Image Hover Change #156839
    James D
    Member

    Thanks, that actually worked perfectly and it perfectly reversed the existing system.

    Here is the code now:

    embed, iframe, img, object, video, .wp-caption {
    max-width: 100%;
    }
    img {
    height: auto;
    }
    .featured-content img, .gallery img {
    width: auto; /* IE8 */
    }
    #blog img, #portfolio img {
    /* this tag controls the color and opacitiy of the feature image*/
    margin-bottom: 16px;
    opacity: 1;
    }
    #blog img:hover, #portfolio img:hover {
    /* this tag controls the color and opacitiy of the feature image HOVER*/
    opacity: .6;
    }
    /* Gallery

    If I wanted to add a stroke to the border that would then change color on the hover, this is what I have tried that did not work:

    ##blog img, #portfolio img {
    /* this tag controls the color and opacitiy of the feature image*/
    margin-bottom: 16px;
    opacity: 1;
    border-image-width: 2px;
    border-bottom-color: red;
    }
    #blog img:hover, #portfolio img:hover {
    /* this tag controls the color and opacitiy of the feature image HOVER*/
    opacity: .6;
    border-image-width: 2px;
    border-bottom-color: blue;
    }
    }

    Thanks

  • 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