Qapla
asked 5 years ago

Hi everybody,
Please, does someone know how to change the size / style of the DATE in timeline mode?
Thanks

3 Answers
DominicStaff
answered 5 years ago

 
To change the image size, you can add the following code to the functions.php file:
add_action( ‘after_setup_theme’, ‘wpdocs_theme_setup’ );
function wpdocs_theme_setup() {
    add_image_size( ‘homepage-thumb’, 650, 472, true ); // (cropped)
}
 
Then go to the dw-timeline-pro/templates/content.php file and add the “homepage-thumb” size in to the post thumbnail.

<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('homepage-thumb'); ?></a>

And you can change the layout for the image and content in this file.

Qapla
answered 5 years ago

Hi
Thanks for your replay but my question was about the DATE (day/month/year) and not about the thumbnail (I’ve send another question about thumbnail and you make the same response as here 😉

Dominic Staff
replied 5 years ago

So, If you still face their issue, please let me know. I have some confusion with the previous answer. Sorry about that.

Qapla
answered 5 years ago

Hello,
I’ve fix that question with that code in entry-meta.php : 

Normal
0

21

false
false
false

FR
X-NONE
X-NONE

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Tableau Normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:””;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:”Calibri”,sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:”Times New Roman”;
mso-bidi-theme-font:minor-bidi;
mso-fareast-language:EN-US;}


<div class=”entry-meta”>
<H4>
                  <span class=”entry-date”>
<?php _e(”, ‘dw-timeline-pro’); ?> <a href=”<?php the_permalink(); ?>”><time class=”published” datetime=”<?php echo get_the_time(‘c’); ?>”><?php echo get_the_date(); ?></time></a>
</H4>

Powered by DW Question & Answer Pro