Block Metadata

Posted in: Newspaper
Post count: 80

Hello TagDiv team,

I am trying to find a way to add metadata to blocks.
For example, on Block 7, I want to add Author and Date to the below but I can’t find this option.

How can I make these changes?

Thanks,

Post count: 22421

Hello,
In block 7, these were removed from the code but they can be re-added. This was a design choice so the block would not look too crouded. Please remove the comments (//) from these lines: http://screencast.com/t/xbY1MUyb
Thank you!

Post count: 80

Hello,

Is the same for all other blocks?
Do I have to locate them all specifically and remove these comments?

Thanks.

Post count: 22421

Hello,
Not all blocks have these commented out. Please take a look at this link and see each block that does not have the author or date set to it. You only ned to do it for the ones missing: http://demo.tagdiv.com/newspaper/block-1/
For this you need to identify the module used for the blocks. You can check this list to see which module is used on which block: http://screencast.com/t/EVhZ32KOMHKm
Thank you!

Post count: 80

Hello Bogdan,

I have done the above but cant’ see any changes. The code was changed to:

<div class=”item-details”>
<?php echo $this->get_title();?>
<div class=”td-module-meta-info”>
<?php if (td_util::get_option(‘tds_category_module_6’) == ‘yes’) { echo $this->get_category(); }?>
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
<?php echo $this->get_comments();?>
</div>
</div>

But this is not showing on the modules.
http://www.glitched.co.uk

Could you please let me know if there is an error?

Post count: 23312

Hello

I have checked your website and I saw that all of these are hidden with a bit of CSS. Please try to use the code below and place it in Theme panel->Custom CSS area.

The code is ->

.td-what .td_module_6 .td-post-date{
display:block;
}
.td-what .td_module_6 .td-post-author-name{
display:block;
}

The result you should see here -> http://screencast.com/t/2VQsMmesmau

Hope this helps and let us know how it goes!

Thanks for your message!

Post count: 80

Thanks Catalin,

I’ll implement this as soon as I can.

I can see from the screencast that the date is under the author. How can I have it so the date is next to the author (inline)?

Thanks.

Post count: 23312

Hello,

You can use the code below if you want to display inline the date and the author name for your module. Try the code below and place it in Theme panel->Custom CSS area.

The code is ->

.td-what .td_module_6 .td-module-meta-info {
display: inline-flex;
}

Thanks.

Post count: 80

Hey Catalin,

I’ve implemented this but it does not show up the author?

Also, is there a setting in the theme to change date format? I want the date to be able to say “2 hours ago”, “2 days ago” etc?

Thanks.

Post count: 23312

Hello Glitched,

I have checked your website and I saw that you author name has the display:none attribute and that’s why you cannot see it. Try the code below to display it using this ->

.td-what .td_module_wrap .td-post-author-name{
display:block;
}

Unfortunately, for your second request, our theme does not have such an option for this type of date. Please notice that all the settings for date format you can do in your panel, General-Settings, like this -> http://screencast.com/t/ionW4R6Rakob For more information about Formatting Date and Time, please check the Codex, here -> https://codex.wordpress.org/Formatting_Date_and_Time

Hope this helps!

Thanks for your understanding!

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