Hey tagDiv folks,
I am doing a little custom work and have some questions around metadata displayed in Big Grid.
Currently, if a review is shown in Big Grid, the author and date metadata is replaced with stars. What I’d like to do is append the rating to the end of the metadata instead and show it as a percentage.
I know editing core files = bad. So, I have been doing some edits and trying to implement them in the Child theme. But, I am not sure how to override the get_date() function with my Child theme nor can I find where the metadata is being replaced.
Could you point me in the right direction?
Cheers,
Mark
Hi,
The get_date() function is included in the td_module.php file which is not editable via child theme, sorry. – http://screencast.com/t/QUmjiz2K
The stars render function is present here – http://screencast.com/t/APNIi3wHs
You could try to recreate the functions inside the big grid file on the child theme replacing the existing ones – http://screencast.com/t/7BvV0SJek but i don’t know if it will work, the alternative would be to modify the theme code.
Thank you, Emil G.
Hi Emil,
It seems I cannot override the td_module_big_grid.php in the child theme either.
I have proven the concept by editing the core files but I really don’t want to do that with the regular updates coming from you folks.
Oh well, back to the drawing board…
Cheers,
Mark
Latest version. I always keep it updated.
Maybe I am putting my child theme copy of td_module_big_grid.php in the wrong location?
FYI, I’ve found it better to actually edit the core files and keep record of what you edit; than edit the child theme. Child theme not always functional with all plugins, and some CSS and other stuff not always editable, and technically it’s a “redirect” which Google not fond of even though WordPress considers it their favorite thing in the world.
For best speed and compatibility, I recommend editing the core files, and just keeping track of that (e.g., folder/file/line #, before/after code, etc.).
Unfortunately, that really isn’t an option for me. It adds a layer of complexity that isn’t welcome. I don’t want to have to “manage” updates as it will distract from creating content.
You want the module file in this folder..
/wp-content/themes/Newsmag-child/includes/modules
-
This reply was modified 11 years by
DavisBeatz.
-
This reply was modified 11 years by
DavisBeatz.
I know this is an old post but this is exactly what I’d like to implement on my site. Would you be willing to share the code and file you modified?
