Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
m0re
tagDiv Member

Hello,
And only if we allow the feature image to create multiple thumbnails and stop the other images in the post to create further thumbnails. What small piece of code we will need to apply?

m0re
tagDiv Member

Thanks Paologalli, I am using Style 3 and using single_template_3.php for this. You just suggested me to put the code in loop-single.php. Should i still put the code in loop-single.php or single_template_3.php? and by the way, where should i put the code in the file, can you share the screenshot plz?

m0re
tagDiv Member

I have activated Style 3 for the post in my Newsmag. Will this code still work in loop-single.php? or i should use it in someother file. If it has to be put in loop-single.php, where exactly should i put it?

m0re
tagDiv Member

That means it only shows ‘updated on (date)’ only when a post is updated otherwise it will show only publish date normally?

m0re
tagDiv Member

Hi, a user on this forum (Pedroarmindo1) helped me fix the basic problem. I figured out that Single_template_xx.php should be edited

We need to find this code in the file
<?php echo $td_mod_single->get_date(false);?>

and replace it with the following code

<?php echo the_date(false, ‘<span class=”td-post-date”>Publicado em: ‘,'</span>’); ?>
</div>
<div class=”info-line”>
<?php echo the_modified_date(false, ‘<span class=”td-post-date td-post-modified-date”>Atualizado em: ‘,'</span>’); ?>

But there is 1 more issue; if anyone could help here;
1 – Two dates are displaying in two lines. See here http://prntscr.com/gk9wd9
There should be only single date “Updated on: September 12, 2017” instead of
also displaying the ‘publish date’ and ‘updated date’

2 – Also how the date could be formatted. What CSS should be used.

m0re
tagDiv Member

Pedroarmindo1, Many thanks for your help, it really worked. I figured out that you edited the Single_template_2.php

For others, find this code in the file
<?php echo $td_mod_single->get_date(false);?>

and replace it with the following code

<?php echo the_date(false, ‘<span class=”td-post-date”>Publicado em: ‘,'</span>’); ?>
</div>
<div class=”info-line”>
<?php echo the_modified_date(false, ‘<span class=”td-post-date td-post-modified-date”>Atualizado em: ‘,'</span>’); ?>

But there is 1 more issue; if anyone could help here;
1 – Two dates are displaying in two lines. See here http://prntscr.com/gk9wd9
There should be only single date “Updated on: September 12, 2017” instead of
also displaying the ‘publish date’ and ‘updated date’

2 – Also how the date could be formatted. What CSS should be used.

m0re
tagDiv Member

Hi thank you but that process only changes the date to “Modified on date” on all posts whereas I need the function which could only change the date of posts which are updated later after their publish date and not every post.
e.g if a post has been updated;
if the current date is > publish date then
update the date to current date and change ‘publish on’ to ‘updated on’ current date;
The following function also does a similar thing but it doesn’t work on Newsmag theme.

function wpb_last_updated_date( $content ) {
$u_time = get_the_time(‘U’);
$u_modified_time = get_the_modified_time(‘U’);
if ($u_modified_time >= $u_time + 86400) {
$updated_date = get_the_modified_time(‘F jS, Y’);
$updated_time = get_the_modified_time(‘h:i a’);
$custom_content .= ‘<p class=”last-updated”>Last updated on ‘. $updated_date . ‘ at ‘. $updated_time .'</p>’;
}
$custom_content .= $content;
return $custom_content;
}
add_filter( ‘the_content’, ‘wpb_last_updated_date’ );

m0re
tagDiv Member

Hi thank you but that process only changes the date to “Modified on date” whereas I need the function which could only change the date of posts which are updated later after their publish date and not every post.
e.g if a post has been updated;
if the current date is > publish date then
update the date to current date and change ‘publish on’ to ‘updated on’ current date;
The above-mentioned function also does a similar thing but it doesn’t work on Newsmag theme.

Plz suggest solution.

m0re
tagDiv Member

Yes true, please do consider it for future releases as this will let us (users) use the theme without fear of generating too many redundant images that only pile up and consume the storage. Suppose, if a post has 15 images and there are half the thumbs active from the theme option panel, the theme will create hundred of images that wouldn’t be used.

  • This reply was modified 8 years by m0re.
m0re
tagDiv Member

I know that wordpress handles 3 images from the “setting” area. I want to turn couple of more images sizes from the theme ‘block setting’ area but i only need it to create multiple images for ‘feature image’ of the post But not all of the images inside the post.
There should be a piece of code to deactivate from somewhere to disable this option for all the post images except the ‘feature image’.

m0re
tagDiv Member

Hi,
I think there was a confusion. The following screenshot shows that the author box for some author is not required.

http://prnt.sc/emuu7e

I only want the author box underneath the posts for some authors. But i want to hide this box for some authors. Please let me know if i am clear?

m0re
tagDiv Member

On my website, morenews.pk i just don’t want certain authors profile to appear underneath the posts (any post, all posts). Just want the author profile of selected authors to appear underneath the posts.

m0re
tagDiv Member

Thank you, but i was actually looking for hiding certain authors completely. I mean If I have 4 authors Author 1, Author 2, Author 3 and Author 4. I would be interested in displaying author box for only Author 1 and Author 4. It shouldn’t be on post basis but only on Author basis.

m0re
tagDiv Member

Catalin,
I have tried so many times as described in your screenshot, the custom ad is not appearing. It was working with the previous version (earlier than 3.3) but with the new one, it does not appear. Neither at the top position nor at the end of post through custom ad short code.

Do you think there is some other way to put ad in the newer version?

m0re
tagDiv Member

Thank you for responding. Does this code stop the AdSense Code placeholder from loading or just display none because this way it might violate the Adsense policy. Can we do it through PHP code?

m0re
tagDiv Member

Hi,
I have already limited my options from here. I’ve activated only 3 thumbnail sizes from the ‘Block Settings, ‘ but it creates those sizes for all the images in a post. However, it should create those 3 sizes for the feature image that are to be used in various modules. It should not create variants of any additional image/images that I upload in the post other than feature image.
For example if i upload 4 additional images other than feature image it will create useless variants of 4 images too i.e 4 (images) x 3 (thumbs) = 12 (images). This will keep increasing the folder size in an undesired way. What is the way to stop it? I hope i am a little better in explaining this time…

m0re
tagDiv Member

Hi,
Could you please tell which files the developer/freelancer should look at for making the template full width?

m0re
tagDiv Member

Hi,
I updated to the newer version of newsmag theme 3.3 and the above solution of putting ads through short code has stopped working.

I had put the two custom ads through shortcodes in loop-single-2.php for showing ads at the bottom but after the upgrade it is not working. Is there another way to put the code now?

m0re
tagDiv Member

Hi, thank you. Yes true that the ad/banner should appear after feature image if i opt to put code in “article top ad” placeholder but the challenge is that i have turned off the feature image to appear in post and i put the same image manually to be placed before the text start. In this case, if i put the ad code in “article top ad” it always appear before the first image (or after the title of the post) as it can be seen in the following image;
Ad after title but before first image

I think i will need to put short_code custom ad. Where i should put the shortcode in oop-single-2.php file?

m0re
tagDiv Member

Much thanks. it worked like charm.

m0re
tagDiv Member

I tried the following in CSS and it seems to work for now.

.td-page-title {
display: none;
}

is it a good way to do it?

m0re
tagDiv Member

Well i am not talking about the change in URL but the title of the archive page which you can see here on this link written as Tag: Special Reports under the menu bar.

m0re
tagDiv Member

Sorry for my last message as i didn’t check your earlier reply on tagDiv Composer. So in this case when it is not available, what do you suggest, should we keep working with the existing version of the VC composer or there is another option?

m0re
tagDiv Member

Any word on the tagDiv Composer as older version of Visual Composer keep clashing with the cache plugin and home page doesn’t update

m0re
tagDiv Member

Ok and what about the tagDiv Composer plugin. I can’t seem to find it. Have you released the final version of it or can i use it as an alternate to VC Composer?

Viewing 25 posts - 1 through 25 (of 28 total)