Tagged: Blog, custom text, timestamp
-
AuthorPosts
-
February 27, 2017 at 2:19 am #752105
Hey guys, love your theme and have now used it on my fourth site!
The client I am working for wants some little custom bits done. Most importantly at the moment is changing where the timestamp current is on the blog post element to custom text for each post.
To give a little context we are using the blog as a testimonial feed and want to have the individuals job titles where the timestamps are.
Hope you guys can help, let me know if you need FTP access but hoping its just a simple edit of a PHP file.
Cheers!!
BillyMarch 1, 2017 at 9:20 am #753541Hey billypostle,
Can you give us admin access also? as well as the ftp access. Just place the details in Private Content. Are you using a child theme? if not please enable it: http://kriesi.at/documentation/enfold/using-a-child-theme/
Best regards,
NikkoMarch 5, 2017 at 2:15 am #755779Just enabled the child theme and have created an admin user for you guys as well as FTP access credentials.
March 9, 2017 at 6:53 am #758164Hey!
Thank you for the update.
Please edit the posts then enable the Custom Fields. Create a new custom field called “job_title” then add the value. After that, add this snippet in the functions.php file:
add_filter('avf_post_slider_entry_excerpt', 'avf_post_slider_entry_excerpt_mod', 10, 4); function avf_post_slider_entry_excerpt_mod($excp, $prep, $perm, $entry) { $title = get_post_meta( $entry->ID, 'job_title', true ); $titlemod = "<div class='job_title'>".$title."</div>"; if ( ! empty( $title ) ) { $excp = $excp . $titlemod; } return $excp; } function ava_custom_script_fix(){ ?> <script> (function($){ function a1() { $('.job_title').insertAfter('.slide-meta-time'); $('.slide-meta-time').remove(); } a1(); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_fix');// https://codex.wordpress.org/Custom_Fields
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
