Forum Replies Created
November 11, 2013 at 11:31 am in reply to: how to add class to main class="content" and aside="sidebar" #72327
I appreciate your help and hope it didn’t come across the wrong way.
I merely want to add a class to those so I can add custom css that wouldn’t apply at the Body level or at the Entry level but in between those and also to the <aside>.
I have a feeling I’m going to be adding a body classes on these and duplicate some css.November 11, 2013 at 11:15 am in reply to: how to add class to main class="content" and aside="sidebar" #72321
As you wrote:
the classes you listed are assigned automatically (which is what I was thinking when I originally replied to this topic)
Both the <main> and <aside class=”sidebar”> are assigned automatically. There are filters to add classes to the <body> class (http://my.studiopress.com/snippets/custom-body-class/) and we can add/remove the entry meta html5 markup (http://my.studiopress.com/snippets/entry-header/#remove-markup) and the entry footer markup (http://my.studiopress.com/snippets/entry-footer/#remove-markup). But there’s nothing listed on the site to add/remove the <main> and <aside>.
If I could remove it then I could add back in my own options and classes like I can on the entry header and footer. But I haven’t been able to find the code in the Genesis files to edit it. (I’m not a beginner and I’m not an expert coder either.)
Let’s say I’m using Focus Pro, as the child theme (which I’ve been playing with for this. Yet it’s a custom theme.). The answer wouldn’t lie in the child theme.November 11, 2013 at 9:21 am in reply to: how to add class to main class="content" and aside="sidebar" #72312
This isn’t on a live site. The site shouldn’t matter. This is the core code for Genesis. There’s a filter to add a class to the <body> tag. I’d like to add a class to the <main> tag too.
Thank you, sir. Exactly what I wanted.
Yes. It removes both RSS and comments RSS but does not remove the comments RSS feed of individual posts.
I only want to remove the comments and individual posts RSS. Not the site, category, or custom post type RSS.
After posting, and continuing to search around, I realize it’s a bigger difficulty than worth worrying about. Comments are disabled on my site. There’s nothing to subscribe to. I was hoping to find a simple solution to reduce a small amount of code in the header. But the effort to do it will be more of a difficulty than leaving alone.
Thanks for your reply, Sridhar.
If you look at the code output of the page, Genesis uses the html5 Google js to give support for IE 9 or less browsers. It should read:
<!–[if lt IE 9]><script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script><![endif]–>
Nevermind. I just realized I didn’t save the CSS before. It’s working once the CSS is modified. Doh!
Not sure what you mean by integration but you should look into Infusion’s Marketplace. They have many people who have paid ways to make Infusion easier to use. There is at least one company with a plugin to integrate WordPress with their system, beyond placing opt-in forms on your site.