• I need to add some structured markup on the theme using child theme. How can I modify this file customizr\inc\parts\class-header-header_main.php since, I have tried putting this file in wp-content\themes\customizr-child but it’s not taking effect. And by the way is it possible to remove the footer “Designed by Themes & Co ·” ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author presscustomizr

    (@nikeo)

    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.

    Thread Starter doushabu06

    (@doushabu06)

    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>&nbsp;
    		<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&ndash;Sat:</span>
    		</span>
    	 9am&ndash;1pm&nbsp;&nbsp;2pm&ndash;7pm
    	</p>
    	<p>Saturday in summer:&nbsp;&nbsp;9am&ndash;1pm</p>
    	<p>August:&nbsp;&nbsp;call&nbsp;to&nbsp;check&nbsp;if&nbsp;we're&nbsp;open</p>
    </div>

    The opening hours are over-ruled by the business’s entry in Google Business.

    Thread Starter doushabu06

    (@doushabu06)

    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.

    Thread Starter doushabu06

    (@doushabu06)

    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/

    Thread Starter doushabu06

    (@doushabu06)

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Modify customizr\inc\parts\class-header-header_main.php’ is closed to new replies.