Modify Template – Local Date and Latest Articles

Posted in: Newspaper
Post count: 5

1. How I can find the code and file to modify article position? like category image and title. I want change the position of category name move to above the title.

2. I want change default date time (english) with local date time, how i change that? Yesterday I was trying to change with plugin and replacing locale.php it’s doesn’t work.

Thank you..

Post count: 23312

Hello slecet,

1)Provide some useful screenshots so I can identify the section which you want to change. Also, you can provide your website URL so I can take a closer look at it.
2)If you want to change the Language and the Timezone you can do it from panel, General Settings, like this -> https://www.screencast.com/t/qvJiFWIg

Thanks for your understanding!

Post count: 5

Thanks for your faster reply,

I have done with date problem, but now i need to insert the time like 13:00 WIB or 3:10 PM to in the side of date –> (13:00 WIB, Senin, 2 Maret 2017)

I want to move bottom category to the top of article :

Regards,
Udin

Post count: 22421

Hello,

In order to move the date on top of the article title, you will have to modify the module files and alter the theme code. Here is an example of how it can be done: https://www.screencast.com/t/jR5gLHAmk
You can see a list of what modules are used on which blocks here: https://www.screencast.com/t/2dSPdsxDNkYr

Thank you!

Post count: 5

Thank you for your reply.

I was trying your suggestion but still getting error. The time not display there. Could you show me your code to display time like 10:00 PM beside the date?

this is our site : eksomedia.com

Thank you..

Post count: 22421

Hello,

In order to get the time and date to show up you must add a date format like so in the custom date format:
F j, Y g:i a

Then the date will show up in your blocks and posts.

Thank you!

Post count: 5

Hi Bogdan,

The code didn’t working :

<div class="td-module-meta-info">
<?php if (td_util::get_option('tds_category_module_10') == 'yes') { echo $this->get_category(); }?>
<?php echo $this->get_author();?>
<?php echo $this->get_date('F j, Y g:i a');?>
<?php echo $this->get_comments();?>
</div>

Is that right?

Thank you..

Post count: 22421

Hello,

Adding the date in wordpress is easier than altering the theme files as it will not need reapplying the modification after a theme update. Simply copy the time code into the date one: https://www.screencast.com/t/dPwSwtNrfS0
result: https://www.screencast.com/t/NeTlVGNfjh

Thank you!

Post count: 5

Hi Bogdan,

Great! that’s worked!

Thank you… 😀

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