Tagged: ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #337644

    HI,

    I am using enfold theme and there is a widget with name “Enfold Child Combo Widget”, it has 3 tabs like
    1) Popular
    2) Recent
    3) Comment

    In that i want to supress comment tab and display only popular and recent tab. So how can i do this? Please help me.
    And
    I want to display last modified date in page source for microdata. But don’t want to reflect same on the front view. Means search engine can read the last modified date through microdata ‘itemprop’ tags but user should not see the last modified date.

    How can i do this ?

    #338174

    Hi kriru!

    Thank you for using Enfold.

    You can remove the comment tab with this on Quick CSS:

    .tab.widget_tab_comments {
    display: none !important;
    }

    Best regards,
    Ismael

    #341350

    Hi,

    Thank you for your reply, the comment tab is suppressed but now

    I want to display last modified date in page source for microdata. But don’t want to reflect same on the front view. Means search engine can read the last modified date through microdata ‘itemprop’ tags but user should not see the last modified date.

    How can i do this ?

    • This reply was modified 10 years ago by kriru.
    #342137

    Hey!

    Where do you want to add the last modified date exactly? If you want to modify the widget, you can edit framework > php > class-framework-widgets.php. Look for the avia_combo_widget.

    Cheers!
    Ismael

    #343420

    In my Page source Itemprop Microdata tags are available. But It is showing datePublished in itemprop time tag and I want to display there Post modified date. Site in the issue is – Career Guru99
    Check below image
    Check the image
    Please help.

    • This reply was modified 10 years ago by kriru.
    #344488

    Hey!

    Thank you for the info.

    Please use the “avf_markup_helper_attributes” filter found in wp-content/themes/enfold/includes/helper-markup.php to add or modify attributes to the markup output. The $args variable contains all necessary parameters like context, post type, etc.However if you’re not familiar with the concept and/or usage of filters please hire a freelancer developer. The attribute that you want to manipulate is:

    case 'entry_time':
                    $attributes['itemprop'] = 'datePublished';
                    $attributes['datetime'] = get_the_time('c');
    

    Best regards,
    Ismael

    #345243

    I have modified the code as per your reply and Now I am getting Last Updated date in my page source. But It changes Last updated date only at the itemprop attribute – datetime and not at the time tag value. time tag value is still showing post published date. It should display Last updated date as well.

    <time class='date-container minor-meta updated' itemprop="Last modified" datetime="2014-10-30T10:00:32+00:00">July 23, 2014</time>

    Check Image

    Thanks in anticipation

    #346106

    Hey!

    You can edit includes > loop-index.php, find this line of code:

    <span class='date-container minor-meta updated'><?php the_time(get_option('date_format')); ?></span>
    

    Use the the_modified_date function. Please refer to this link: http://codex.wordpress.org/Function_Reference/the_modified_date

    Best regards,
    Ismael

    #347082

    It is done.

    but now i want to do

    1) can we make micro-data changes on child theme ??
    otherwise we will update theme
    and everything will be gone

    2) I want to display Date published and Date Updated both in itemprop

    for example now it is displays like

    <time class='date-container minor-meta updated' itemprop="dateModified" datetime="2014-10-30T12:00:32+00:00" >October 30, 2014</time><span class='text-sep text-sep-date'>

    and also want to display

    <time class='date-container minor-meta updated' itemprop="datePublished" datetime="2014-10-21T12:00:32+00:00" >October 21, 2014</time><span class='text-sep text-sep-date'>

    How can i do this?

    #347564

    Hey!

    1.) Try to copy the includes folder with the whole helper-markup.php file inside. Make the changes there.

    2.) Just copy the original code then place it either below or above the modified code.

    Regards,
    Ismael

    #347714

    hi,

    1) i have tried to copy the includes folder with the whole helper-markup.php file inside the enfold-child folder and after that i removed the file from parent theme but it does not work. i want like if i update the parent theme then no need to make changes in the updated files.

    2) I have copied the original code then place it either below the modified code and it is displays both but problem is that it displays “itemprop=dateModified” in both like
    <time class='date-container minor-meta updated' itemprop="dateModified" datetime="2013-10-19T12:25:09+00:00" >October 19, 2013</time><time class='date-container minor-meta updated' itemprop="dateModified" datetime="2013-10-19T12:25:09+00:00" >July 23, 2014</time>
    but I need like this
    <time class=’date-container minor-meta updated’ itemprop=”datePublished” datetime=”2013-10-19T12:25:09+00:00″ >October 19, 2013</time><time class=’date-container minor-meta updated’ itemprop=”dateModified” datetime=”2014-07-23T12:25:09+00:00″ >July 23, 2014</time>

    Please guide me.

    #348135

    Hi!

    1.) Please hire a freelance developer. Point out that you can use the “avf_markup_helper_attributes” filter as stated on my earlier post: https://kriesi.at/support/topic/remove-some-portion-from-widget/#post-344488

    OR use this on functions.php:

    add_filter('avf_markup_helper_attributes', 'avf_markup_helper_attributes_modified', 10, 2);
    
    function avf_markup_helper_attributes_modified($attributes, $args) {
    	if($args['context'] == 'entry_time') {
    		$attributes['itemprop'] = 'dateModified';
            $attributes['datetime'] = get_the_time('c');
    	}
    	
    	return $attributes;
    }

    2.) Edit the new code then look for this part of on the code:

    "<time class='date-container minor-meta updated' $markup>"
    

    Replace it with:

    "<time class='date-container minor-meta updated' itemprop='datePublished' datetime='".get_the_time('c')."' >"
    

    Regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.