Add Disclosure To Specific Categories

Community Forums Forums Design Tips and Tricks Add Disclosure To Specific Categories

This topic is: not resolved

This topic contains 12 replies, has 2 voices, and was last updated by  keithbloemendaal 9 months, 2 weeks ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #46399

    keithbloemendaal
    Participant
    Post count: 9

    Hi all,

    I am trying to add a disclosure statement to 2 specific categories (all posts within those categories) Using Lifestyle Child Theme.

    Site is located here: aconcordcarpenter.com

    Trying to add to the “Product Reviews” and “Tool Reviews” categories.

    Trying to add text box similar to an author box that I can style.

    Thanks in advance for your help!

    http://aconcordcarpenter.com
    #46419

    braddalton
    Participant
    Post count: 7472

    Many ways to do this:

    1. Custom field
    2. Custom widget
    3. Hook in using text using custom function

    Same content for posts in each category?

    Width of the content area or full width?


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #46420

    keithbloemendaal
    Participant
    Post count: 9

    I would rather use a custom function.

    Same content for all.

    Content width.

    Thanks for the response!

    #46423

    braddalton
    Participant
    Post count: 7472

    Please copy this code from the view raw link and paste it at the end of your child themes functions.php file using a text editor.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #46430

    braddalton
    Participant
    Post count: 7472

    Ok use this if you don’t want a widget.

    https://gist.github.com/5800851


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #46436

    keithbloemendaal
    Participant
    Post count: 9

    That just broke the site….

    #46441

    braddalton
    Participant
    Post count: 7472

    Which code snippet? I tested both and they worked on your theme.

    Where did you copy the code from and where did you paste it?

    Also, can you paste the error message here please.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #46442

    keithbloemendaal
    Participant
    Post count: 9

    I had the first one in and it worked, added second and it broke. I didn’t have new FTP info as site was just moved, waiting to hear back from client now.

    #46443

    braddalton
    Participant
    Post count: 7472

    You don’t need both.

    The first is for a widget and the second does the same thing but without the widget.

    Please remove one of these 2 code snippets.


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #49705

    keithbloemendaal
    Participant
    Post count: 9

    Ok, I am back to working on this. I have the code for the widget in there right now. I changed it to only show category ’70′ for testing, which is “Tool Reviews”. It still isn’t working.

    The widget is there, I added a text widget to it and put my disclosure in it.

    Are there other ways to do this?

    #49762

    braddalton
    Participant
    Post count: 7472

    Hey Keith

    What version of Genesis are you using?

    Both code snippets work as i have tested them both locally.

    Try this hook guide to change the hooks for HTML 5 enabled child themes if needed http://www.briangardner.com/code/genesis-html5-loop-hooks/

    Try removing the apostrophes from the category i’d's


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #49770

    keithbloemendaal
    Participant
    Post count: 9

    Version: 1.9.2 · Released: April 10, 2013

    I will try both suggestions and get back to you.

    #49772

    keithbloemendaal
    Participant
    Post count: 9

    Removing apostrophes worked! Thanks!

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.