Display headline with Time instead of date

Posted in: Newspaper
Post count: 186

How do i display a headlines without thumbnail and time instead of date usually shown

Post count: 22421

Hello,
Please provide more details as to what headlines you are referring to and where you want to remove the date and only show time.
Thank you!

Post count: 186

This is the screen shot of how i want it

i want the pictures and date removed

http://nigerianpilot.com/wp-content/uploads/2015/12/diz.jpg

Post count: 22421

Hello,

You can remove any thumbnail with css. For example on a block 8 you would use this code:

.td_block_8 .td-module-thumb{
display:none
}

You can then edit the particular block from the theme files and make it display time instead of date. You will have to edit the particular module the block you want uses. You can see a list of what module each block uses here: http://screencast.com/t/m6RuXVKut
Block 8 uses module 7 so we need to edit module 7 like so:
http://screencast.com/t/fvwfLBg5xS


<?php the_modified_time('G:i'); ?>

Thank you!

Post count: 186

Is there a way i can make the date or time appear first before the post. as the current setting shows post topic before the date.

as you see on the scren shot

http://nigerianpilot.com/wp-content/uploads/2016/03/latest.bmp

plz help me with the css code that will show date first or time

lets assume we are targeting block 9 only

  • This reply was modified 10 years by willysawa.
Post count: 22421

Hi,
It can be done but you have to edit the theme files. It cannot be done with css.
You will have to edit every module you want this to take place: http://screencast.com/t/9TvORJG3 and simply move the date code above the title code like so:
http://screencast.com/t/8hbAWpBBw2 it should look like this: http://screencast.com/t/NRVeY5VQP
Result: http://screencast.com/t/fY5JkjNppbR
Thank you!

Post count: 186

Good, can I make it has red background as in the image and on same line just as the image attached

Post count: 22421

Hi,
You can use this custom css but you will also have to adapt it to the blocks you use as it also impacts the big grid category titles (it positions them inline with the title)

.td-post-date, .entry-title{
display:inline!important;
}
.td-post-date{
background-color:red!important;
color:white!important;
}

Thank you!

Post count: 186

I just want to target block 9, is it same code

Post count: 186

i tried this code,

.td_block_9.td-post-date, .entry-title{
display:inline!important;
}
.td_block_9.td-post-date{
background-color:red!important;
color:white!important;
}

it dint worked.

plz help me with the correct code that will show red background and time for block 9.

Thanks

Post count: 22421

Hi,
If you only want to target that block, you have to modify module 8 in the php files and then use this code:

.td_block_9 .td-post-date, .entry-title{
display:inline!important;
}
.td_block_9 .td-post-date{
background-color:red!important;
color:white!important;
}

Thank you!

Post count: 186

I have done it, everything works fine, the time is showing, its on same line. but the red background dint show

Post count: 22421

Hi,
Please check your css to see if there are no problems with closing tags. Make sure you implement it correctly as the code works as expected: http://screencast.com/t/PmEjIUWSJW9
If you cannot get it to work, please provide a link to your website and a screenshot of the code in your custom css so we can check for errors.
Thank you!

Post count: 186

I notice something, you know i have modified module 8 to get time instaed of date, so its the time i want to show red background now.

as i have tested the code with other blocks its working, but this time around i want it to show red back ground on the time in block 9.

so any solution

Post count: 22421

Hi,
Please provide a link to your website so I can inspect it and provide the proper css code. If it’s a staging site and requires username and password, please send it to us via email at contact@tagdiv.com and provide a link to this topic as well so we can identify you.
Thank you!

Post count: 186

Hi Support,

Assuming i have more than 1 block 9 on my page and i just want only one to show the time before the headline, how do i do it

Post count: 22421

Hi,
If you modify the module 8 file then everywhere a module 8 is displayed, it will get the time instead of the date. If you want to only target one single block containing a module 8 that will be a much greater challenge as you need to add extra conditions in the code. This is much more complex and will require substantial coding knowledge. We recommend hiring a freelancer for this as we have no easy solution to provide.
Thank you!

Post count: 186

So can i get it done with just the css

Post count: 22421

Hi,
It may be done with css if you set it to display both time and date from the php files and then hide the time with css with display:none; Then you can activate it with display:block or display:inline but only on the page itself in a row in visual composer with a custom class so it can be targeted with css. It cannot be done in the sidebar however.
I hope this helps.

Viewing 19 posts - 1 through 19 (of 19 total)
The forum ‘Newspaper’ is closed to new topics and replies.