June 17, 2013 at 2:05 pm #46399
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.comJune 17, 2013 at 3:24 pm #46419
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?
June 17, 2013 at 3:28 pm #46420
I would rather use a custom function.
Same content for all.
Thanks for the response!June 17, 2013 at 3:37 pm #46423
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.
June 17, 2013 at 3:57 pm #46430June 17, 2013 at 4:04 pm #46436
That just broke the site….June 17, 2013 at 4:15 pm #46441
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.
June 17, 2013 at 4:17 pm #46442
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.June 17, 2013 at 4:19 pm #46443
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.
July 7, 2013 at 4:33 pm #49705
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?July 8, 2013 at 12:20 am #49762
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
July 8, 2013 at 4:31 am #49770
Version: 1.9.2 · Released: April 10, 2013
I will try both suggestions and get back to you.July 8, 2013 at 4:48 am #49772
Removing apostrophes worked! Thanks!
You must be logged in to reply to this topic.