• 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

Custom Script for category pages

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

Community Forums › Forums › General Genesis Framework Discussions › Custom Script for category pages

This topic is: not resolved

Tagged: category pages, header scripts

  • This topic has 6 replies, 3 voices, and was last updated 3 years, 1 month ago by Amol.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 7, 2022 at 6:12 am #505946
    Amol
    Participant

    Hello Everyone,

    I am working on a custom schema for my website based on the Genesis Sample theme. I wish to implement custom Schema markup for Post category pages. but unable to find a head section to insert a script like a post and pages in Genesis.

    Please advise how to achieve the same.

    Thank you for your support.
    Amoul


    What’s Beneath the Webface

    October 7, 2022 at 7:14 am #505948
    Brad Dalton
    Participant

    There is none for archive pages however you could use the Header and Footer Scripts box. I assume you're using javascript?


    Tutorials for StudioPress Themes.

    October 7, 2022 at 7:28 am #505950
    Amol
    Participant

    Thank you Brad Dalton. You are always there to help the studio press community.

    The script is page specific so we could not use the Header script box which is common for the entire site. Any idea how to resolve this.

    Thank you.


    What’s Beneath the Webface

    October 7, 2022 at 8:07 am #505951
    Brad Dalton
    Participant

    You could try adding a conditional tag in your code. Otherwise, you would need to use PHP code to load a js file conditionally.

    Another option is ACF however you would also need PHP for the output.


    Tutorials for StudioPress Themes.

    October 7, 2022 at 8:11 am #505952
    Amol
    Participant

    Thank you so much got it


    What’s Beneath the Webface

    October 11, 2022 at 5:21 am #505980
    Josiph jhon
    Participant

    To choose what is shown on category pages, go to WP Admin » Appearance » Customize » WooCommere » Product Catalog. There you can choose the setting under “Category Display” to show only products, only sub-categories, or both. This should work by default, although it's possible that your theme can override it.

    October 11, 2022 at 8:54 am #505981
    Amol
    Participant

    Dear Jhon,

    We are not using woocommerce.

    We need to add a header script for taxonomy=category. Unlike the post and pages, the header script box is not available for taxonomy in the genesis sample theme.

    Any idea how to get it done?

    Thanks


    What’s Beneath the Webface

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

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