• 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

JPJP9

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 20 posts - 1 through 20 (of 37 total)
1 2 →
  • Author
    Posts
  • August 14, 2017 at 10:49 pm in reply to: Multiple search forms #210378
    JPJP9
    Member

    Thanks Victor

    August 14, 2017 at 8:36 pm in reply to: Multiple search forms #210372
    JPJP9
    Member

    Oh you're kidding me! The reason this wasn't working is because of the camel case custom post type mediaReleases
    The post type was registered as
    register_post_type( 'mediaReleases', $args );

    I changed it to
    register_post_type( 'mediareleases', $args );

    and changed the filter function and now it works!

    If anyone can explain why using camel case in the instance doesn't work, I would appreciate it.

    June 7, 2017 at 6:12 pm in reply to: SVG Question #207459
    JPJP9
    Member

    Thanks Victor.
    Just in case anyone else is having the same issue:
    That article relates to maintaining the ratio of SVGs which is fine in my case as the viewbox is set. The issue I was having was the overall size (when CSS was inactive) which I have fixed by setting a max-width on the SVG and then overriding with CSS.

    May 21, 2017 at 8:53 pm in reply to: Conditional in functions.php #206818
    JPJP9
    Member

    I have this working - sound OK?

    I have this function in functions.php

    $filename = get_stylesheet_directory()."/includes-tas/";
    if(file_exists($filename)) { 
            require_once( __DIR__ . '/includes-tas/tas.php');
    }

    Then tas.php includes an enqueue to a custom css file and specific functions to Tas website

    April 17, 2017 at 9:37 pm in reply to: Custom Taxonomy Rewrite #204912
    JPJP9
    Member

    I'm still struggling with this rewrite.

    It has to do with the str_replace as if I replace this line for the CPT

    'rewrite' => array( 'slug' => 'products/%product_tax%', 'with_front' => false ),

    with

    'rewrite' => array( 'slug' => 'products/tax', 'with_front' => false ),

    It works fine except using the word tax instead of the actual taxonomy. URLs are correct in all cases except that single throws a 404

    April 10, 2017 at 8:43 pm in reply to: Custom Taxonomy Rewrite #204601
    JPJP9
    Member

    ? Anyone

    April 6, 2017 at 6:46 pm in reply to: Custom Taxonomy Rewrite #204413
    JPJP9
    Member

    Hi Victor,

    Yes I did. I have this function in the posttypes.php file:

    function wt_taxonomy_flush_rewrite() {
        global $wp_rewrite;
        $wp_rewrite->flush_rules();
    }
    add_action('init', 'wt_taxonomy_flush_rewrite');

    And I did it manually also.

    April 5, 2017 at 6:26 pm in reply to: Custom Taxonomy Archive Issue #204359
    JPJP9
    Member

    Oh Wow - I never would have spotted that - thank you so much

    February 7, 2017 at 4:59 pm in reply to: Using grid with custom query #200729
    JPJP9
    Member

    Thanks Victor.

    So I've change it to : `
    function wt_grid_post_class( $classes ) {
    global $wp_query;
    if( !$wp_query->is_main_query())
    return $classes;

    $columns = 4;

    $classes[] = 'one-fourth';
    if( 0 == $wp_query->current_post % $columns )
    $classes[] .= ' first';

    return $classes;
    }`
    but its still not returning the required 'first' class

    February 6, 2017 at 9:29 pm in reply to: Using grid with custom query #200676
    JPJP9
    Member

    By adding this to the top of my loop

     do_action( 'genesis_before_entry' );
             printf( '<article %s>', genesis_attr( 'entry' ) );
             do_action( 'genesis_entry_header' );
             do_action( 'genesis_before_entry_content' );
             printf( '<div %s>', genesis_attr( 'entry-content' ) );

    and this to the bottom:

             do_action( 'genesis_after_entry_content' );
     do_action( 'genesis_entry_footer' );
     echo '</article>';
     do_action( 'genesis_after_entry' );

    I've managed to get the 'one-fourth' added to the article class but its still omitting the 'first' where relevant

    February 5, 2017 at 7:03 pm in reply to: Adding code to the front page #200611
    JPJP9
    Member

    I utilised this article and added the custom fields to a custom widget.

    January 31, 2017 at 8:41 pm in reply to: Add logo to sticky menu #200348
    JPJP9
    Member

    Thank you. Worked a treat.

    November 15, 2016 at 10:59 pm in reply to: Change default size for header image in Pro theme #196215
    JPJP9
    Member

    Glad to hear it.

    November 15, 2016 at 12:49 am in reply to: Anyone use Codekit? – Compressing CSS #196172
    JPJP9
    Member

    The nice man at Codekit sorted me out. Just add a ! for strong css comment that doesn't get compressed.

    /*!
    Theme Name: Theme Name
    Theme URI: URI
    Description: Master Theme Starter Child Theme
    Author: Author Name
    Author URI: Author URI
    Version: 1.0.0

    Template: genesis

    Text Domain: webtree
    /*

    November 14, 2016 at 4:23 pm in reply to: Anyone use Codekit? – Compressing CSS #196159
    JPJP9
    Member

    Is there a way to do that with Codekit or will I need to doctor it manually afterwards?

    November 14, 2016 at 4:18 pm in reply to: Change default size for header image in Pro theme #196155
    JPJP9
    Member

    Although it looks to me like the box the logo is in is the right size - what is happening when you put a logo in that is 400px x 120px?

    Perhaps try .site-title {margin: 0; padding: 0;} and .header-image .site-title > a {background-position: 0% 0%;}

    Hard to tell without seeing the image in there.

    November 14, 2016 at 3:56 pm in reply to: Change default size for header image in Pro theme #196153
    JPJP9
    Member

    Sorry Keith, in your css, make sure that these widths are in your CSS:

    .header-image .title-area {
    max-width: 400px;
    }

    .title-area {
    width: 400px;
    }

    November 13, 2016 at 4:02 pm in reply to: Change default size for header image in Pro theme #196114
    JPJP9
    Member

    oh but maybe that because its the original image. Check this css:

    .header-image .title-area {
    	max-width: $logo-width;
    }
    
    .title-area {
    	width: $logo-width;
    }
    November 13, 2016 at 3:59 pm in reply to: Change default size for header image in Pro theme #196112
    JPJP9
    Member

    Hi Keith,

    The image shows up as 234 x 80 (http://milwaukeeguitarschool.com/wp-content/uploads/2016/11/mgs-logo-long-80.png) so maybe you are using the wrong image from the media library or you need to upload a version that this 400 x 120

    JP

    November 12, 2016 at 5:26 pm in reply to: Change default size for header image in Pro theme #196074
    JPJP9
    Member

    You need to change the size in the CSS also. Under site header

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 37 total)
1 2 →

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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