module_10 position of date and category label

Posted in: Newspaper
Post count: 52

Hi,

I would like to have the category label (.td-post-category) after the date on the same row in module 10.

Now the category label is on the next row after the date.
How and where can i edit this?

Thanks!

Post count: 52

Hi, I found a solution already in td_module_10 i added display:inline-block style.


<div class="td-module-meta-info">
<div style="display:inline-block;"><?php echo $this->get_date();?></div>
<div style="display:inline-block;"><?php if (td_util::get_option('tds_category_module_10') == 'yes') { echo $this->get_category();}?></div>
<?php echo $this->get_author();?>td_module_10.php
<?php echo $this->get_comments();?>
</div>

Thanks

Post count: 52

Edit: It worked but if I put the date before the category then nginx gives an error.
When I switch date to the back then it is ok. like this:


<div style="display:inline-block;"><?php if (td_util::get_option('tds_category_module_10') == 'yes') { echo $this->get_category();}?></div>
<div style="display:inline-block;"><?php echo $this->get_date();?></div>

Is it possible to show the category after the date?

Thanks

Post count: 23312

Hello Roboman,

If you want to display the category after the date on module_10, you should edit the td_module_10.php core file and add the following snippet of code, like this -> https://www.screencast.com/t/2aQ3hYNx3Pv
The code which has to be added is here -> <?php echo $this->get_category();?>

Hope this helps!

Thanks for your understanding!

Post count: 52

Thanks Catalin !!!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.