Tagged: Blog, custom text, timestamp
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!!
Billy
Hey 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,
Nikko
Just enabled the child theme and have created an admin user for you guys as well as FTP access credentials.
Hey!
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