• 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

Terry

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 208 total)
1 2 3 … 9 10 11 →
  • Author
    Posts
  • February 27, 2020 at 12:17 pm in reply to: How to Display Category Description and Image #497002
    Terry
    Member

    Hi Russ,

    One way to move the category description below the title is to change the priority in the add_action call (assuming you're using the link to Brad's page)

    from
    add_action( 'genesis_before_loop', 'display_category_archives_description');

    to something like
    add_action( 'genesis_before_loop', 'display_category_archives_description', 15);

    It may be something different than 15. 15 works for the most recent Magazine Pro, 3.5.1.

    Hope that helps!

    November 20, 2019 at 10:15 am in reply to: Removing blog categories from Blog page #494903
    Terry
    Member

    Thanks Brad! 🙂

    November 20, 2019 at 9:18 am in reply to: Removing blog categories from Blog page #494901
    Terry
    Member

    @braddalton To share my head banging the other day... I'm possibly not using the query_args correctly but now (WP 5.3, Genesis 3.2.1, Genesis Sample 3.2.1) the custom fields approach works for a page that is populated with posts (say with AB Posts and Pages Grid block) but not on a page titled "Blog" that is set as Posts Page.

    Tried both query_args 'cat=-5'(no quotes in field) as well as 'category__not_in'(no quotes in field) on the Blog page, neither successful. However, action hook (as above) was successful.

    November 20, 2019 at 6:55 am in reply to: Altitude Pro logo size and positioning #494898
    Terry
    Member

    Morning Nick,

    If you're still looking, try adding some space to the height of your image. An image 360x70 vs the current 360x41 with no other changes in a clean Altitude Pro v1.1.3 looked good.

    Hope this helps.
    Terry

    November 19, 2019 at 2:01 pm in reply to: Removing blog categories from Blog page #494875
    Terry
    Member

    Lastly, you don't need both conditions but it helps me for understandability/readability
    $query->is_main_query() && $query->is_home()

    November 19, 2019 at 1:52 pm in reply to: Removing blog categories from Blog page #494874
    Terry
    Member

    The ! is_admin() && tests for admin to distinguish main query.

    November 19, 2019 at 1:44 pm in reply to: Removing blog categories from Blog page #494871
    Terry
    Member

    Right, the $query->is_main_query() filters those specified categories from the main query which is what you're displaying on the posts page (Blog).

    It looks like you have a number of post listings on your site.
    Are you trying to filter ob the blog and other locations? Add a test for that page:
    `// Exclude categories from blog archive.
    add_action( 'pre_get_posts', 'exclude_categories_blog_archive' );
    function exclude_categories_blog_archive( $query ) {
    if ( ! is_admin() && $query->is_main_query() && $query->is_home() ) {
    $query->set( 'cat', '-61,-62,-50' );
    }elseif ( is_page(whatever_the_page_id)) {
    // for single category 5
    $query->set( 'cat', ‘-5’ );

    // for multiple categories 3 & 4
    //$query->set( 'cat', '-3, -4' );
    }`

    November 18, 2019 at 3:46 pm in reply to: Exclude categories from blog template #494826
    Terry
    Member

    here

    Sorry, such a Monday :/

    November 18, 2019 at 3:36 pm in reply to: Exclude categories from blog template #494824
    Terry
    Member

    Sorry, try this...

    <script src="https://gist.github.com/maroon-tlc/da29a24d22ce827a29072852d92714b0.js"></script>

    November 18, 2019 at 2:57 pm in reply to: Exclude categories from blog template #494822
    Terry
    Member

    Hi,

    Try (this example uses category ids 30 & 29)

    function exclude_category_blog( $query ) {
       if ( $query-&amp;gt;is_home ) {
          $query-&amp;gt;set( 'cat', '-30' ); //multiple categories replace '-30' with '-30 -29' to exclude categories 29 &amp;amp; 30 
       }
       return $query;
    }
     
    add_filter( 'pre_get_posts', 'exclude_category_blog' );

    Hope this helps.

    October 8, 2019 at 7:10 am in reply to: Altitude Pro – Eliminate space between header and top of page #493921
    Terry
    Member

    Hi,

    It looks like that space is a result of how you removed the page titles.

    Brad has a post here about different ways to remove page & post titles.

    Hope this helps,
    Terry

    October 5, 2019 at 4:22 am in reply to: Breakthrough Pro Blog Page #493878
    Terry
    Member

    Hi,

    To set a content limit via the Customizer ("Customize" in top menu bar when logged into WP Admin and viewing site front end or via WP Admin "Appearance"=>"Customize")...
    Navigate to "Theme Settings"=>"Content Archives"
    Set to "Entry Content" and enter value to "Limit content..."
    Publish

    Selecting an appropriate featured image size should also help.

    Happy WordPressing...

    October 4, 2019 at 3:37 pm in reply to: In Outreach Blog posts appearing twice. #493875
    Terry
    Member

    Is it possible that you're using the same image for the featured image and the first image in your posts? That's what it looks like.

    You can either select a different image for the body of your post or disable the featured image in the "Theme Settings" => "Content Archives"

    October 4, 2019 at 2:58 pm in reply to: In Outreach Blog posts appearing twice. #493873
    Terry
    Member

    Hi ML,

    It looks like your images are displaying twice in the blog roll. The content looks OK.
    Is that the issue?

    Terry

    October 4, 2019 at 2:54 pm in reply to: Home page #493872
    Terry
    Member

    Hi Marci,

    You can change the Home menu item to a link by navigating to Appearance=>Menus in the WP Admin or Customize=>Menus.
    Select the menu you wish to change.
    Add the new Home menu item by selecting a "Custom Link" and add the link to your home page(https://driftlessprairies.org/), Link Text = Home & then select "Add to Menu."
    You'll see the new Home item at the bottom of the menu list.
    So it doesn't get confusing, delete the current menu item.
    Drag your new Home item to the desired location.
    All set!

    Or... your logo is a link to your Home page, so a common convention is to remove the Home item from the menu.

    Hope this helps!
    Terry

    August 13, 2019 at 10:22 am in reply to: Remove footer from all pages except the home page #492959
    Terry
    Member

    Ahhh yes, thanks Brad!
    Sorry for the cut & paste omission.

    August 12, 2019 at 1:44 pm in reply to: Remove footer from all pages except the home page #492948
    Terry
    Member

    Is it possible that you have an older version of Infinity Pro or that the footer has been customized? The code isn't what I would expect for the Infinity Pro footer versions I have. That may be why the snippets aren't working.

    August 12, 2019 at 1:33 pm in reply to: Remove footer from all pages except the home page #492947
    Terry
    Member

    When I load the site, the Home page has the footer with 4 widget areas(Get in touch, FB, download app, welcome back), as does every page. You possibly tried something else?

    The code I provided worked in a clean Infinity Pro child theme.

    August 12, 2019 at 11:01 am in reply to: Remove footer from all pages except the home page #492942
    Terry
    Member

    Please share a link to your site.

    July 31, 2019 at 8:31 am in reply to: Remove footer from all pages except the home page #492689
    Terry
    Member

    Hi,

    Depending on what you're trying to do, this may help...

    add_action( 'genesis_footer', 'paulc_site_footer', 1 );
    function paulc_site_footer() {
    	if ( ! is_front_page() ) {
    		remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    		remove_action( 'genesis_footer', 'genesis_do_footer' );
    		remove_action( 'genesis_footer', 'genesis_do_subnav', 5 );
    		remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
    	}
    
  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 208 total)
1 2 3 … 9 10 11 →

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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