Hi @doushabu06,
The best way to customize the theme is to use it’s hooks API :
If you are not yet familiar with the WordPress Hooks, you might want to check this link :
http://codex.wordpress.org/Plugin_API
Hope this will help you
See also How to customize Customizr.
For the footer credits, see the credits snippet.
Very sad news since, I was thinking of adding the google structured markup in an hour’s time or at max a day. I have a lot of work that needs to be done, so I am not in a position to learn new programming languages of hooks, API, filter, action…whatever, this can take days and I don’t have even a minute to waste.
I am not in a position to learn new programming languages of hooks, API, filter, action…whatever, this can take days and I don’t have even a minute to waste.
Well, your question was specifically “How can I modify this file customizr\inc\parts\class-header-header_main.php …”, so it looked like you did.
It sounds like you might need to hire someone to help you. Or change theme to a less-flexible, but easier one.
I was thinking of adding the google structured markup in an hour’s time or at max a day
If you’re talking about things like opening hours and addresses etc, you don’t need to edit that php file in any case. You can put things like these in the place in your site where you keep the information.
For example, in my widget areas, where I have the address/tel etc., I have something like the following for the address:
<div itemscope itemtype="http://schema.org/LocalBusiness">
<p itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Some Street</span><br />
<span itemprop="addressLocality">Some city</span>
<span itemprop="postalCode">012345</span>
<span itemprop="addressCountry">Some Country</span>
</p>
<p>Tel: (+xx) <span itemprop="telephone">123 45678</span></p>
</div>
and something like the following for the opening hours:
<div itemscope itemtype="http://schema.org/LocalBusiness">
<p itemprop="openingHoursSpecification" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<meta itemprop="opens" content="09:00:00">
<meta itemprop="closes" content="13:00:00">
<meta itemprop="opens" content="14:00:00">
<meta itemprop="closes" content="19:00:00">
<span itemprop="dayOfWeek" itemscope itemtype="http://schema.org/DayOfWeek">
<span itemprop="name">Mon–Sat:</span>
</span>
9am–1pm 2pm–7pm
</p>
<p>Saturday in summer: 9am–1pm</p>
<p>August: call to check if we're open</p>
</div>
The opening hours are over-ruled by the business’s entry in Google Business.
Thanks you but the reason that was requiring me to edit the customizr\inc\parts\class-header-header_main.php is because the google structured Microdata needs me to put some code inside the head html element of the theme and also in the img element of the main logo.
If the customizr theme documentation was available in pdf, it would have been great.
The header is not the head. To add things to the head, you need a snippet like this: http://www.themesandco.com/snippet/adding-google-analytics-customizr/