-
AuthorPosts
-
October 18, 2014 at 7:52 am #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) CommentIn 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 ?
October 20, 2014 at 8:17 am #338174Hi 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,
IsmaelOctober 27, 2014 at 8:27 am #341350Hi,
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.
October 28, 2014 at 11:20 am #342137Hey!
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!
IsmaelOctober 30, 2014 at 2:44 pm #343420In 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
Please help.- This reply was modified 10 years ago by kriru.
November 1, 2014 at 6:20 am #344488Hey!
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,
IsmaelNovember 3, 2014 at 2:09 pm #345243I 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>
Thanks in anticipation
November 4, 2014 at 9:00 pm #346106Hey!
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,
IsmaelNovember 6, 2014 at 2:24 pm #347082It 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 gone2) 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?
November 7, 2014 at 8:44 am #347564Hey!
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,
IsmaelNovember 7, 2014 at 2:18 pm #347714hi,
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.
November 8, 2014 at 1:05 pm #348135Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.