- NewspapertagDiv AMP Plugin Tutorial
- ApiPractical example – How to add a new Block and Module
- NewspaperTrack Subscription Sources with Locker URL in Opt-In Builder
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperCredit System
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to use the Posts List shortcode
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperHow to generate Facebook App ID
- NewspaperHow to insert a block inside the content of a post
- NewspaperModal Popup
- NewspaperPayPal Setup
- NewspaperLink Tracker
- NewspaperLockers
- NewspaperGeneral Options that May Interfere with the Newspaper Theme
- NewspaperAdd Cryptocurrency Price Ticker Widget
- NewspaperPosts Loop Element
- NewspaperThe Newspaper Mobile Theme: Introduction
Hello,
I have an issue with the featured image.
there is no option to disable featured image in page’s amp version.
Normal page – https://thetechmirror.com/best-wunderlist-alternatives/ (not see the issue)
AMP page – https://thetechmirror.com/best-wunderlist-alternatives/amp/ (You will see the issue)
Hi,
For example if you are using post template 1 you need to set this code in wp-content/themes/Newspaper/loop-single-1.php
<?php echo $td_mod_single->get_excerpt($excerpt_length);?>
-> https://www.screencast.com/t/G8ssUdbM
-> https://www.screencast.com/t/w9KbkQ0NwQBZ
-> https://www.screencast.com/t/QDtVNmJo7LBX
So you need to set that code in the post loop for the posts template you are using.
Hope this will help you!
I want to use post template 1, however when I use vertically oriented featured images for posts, they’re too large and leave white space to the right. An example of this:
https://i.imgur.com/25D8M7w.jpg
https://personacentral.com/persona-5-the-animation-volume-7-box-art-revealed/
By using the following code, I can make the width as I want to, but if I set the height, it scales the image down and squishes it, which I don’t want:
@media (min-width:141px){
.td-post-template-default .td-post-featured-image img {
width:100%!important;
height:337px;
margin-left: auto;
margin-right: auto;
}
}
Result:
https://i.imgur.com/zlUVmAc.jpg
How do I instead crop the featured image to a dimension like this one, instead of scaling it down like this?
Tag / Search / Category Pages
Additionally, I want vertically oriented featured images that appear in the above pages to look like the ones in the posts loop. An example of this is that I want this:
https://i.imgur.com/6WIlOH1.jpg
and not this:
Hi,
Only if you chose a footer template that is empty and you set in footer widgets the blocks you want to show, for example -> https://www.screencast.com/t/wQnryIm1bo -> https://www.screencast.com/t/YIvVDaCIHyw -> https://www.screencast.com/t/2o0GOzaPU2
Hope this will help you!
Hello Team,
Is it possible Post View Counter to show some random numbers, like when you post new post, the counter to be already to 125 views (example number). Is there a easy way to achieve this?
Hello, I’m happy using NewsMag theme now. However, as Google pushing content creator to adopt the AMP version of the website, I’m trying to enable the AMP page to my site. I’m using tagDiv AMP plugin from the theme’s directory but I can’t see the result.
When adding “/amp” to website URL, it showing a Not Found error, something that should not happen. I’ve been followed step by step guide from here https://forum.tagdiv.com/tagdiv-amp-plugin-tutorial/
This is my site: https://vegaslide.com/
Thank you!
Sorry, but I didn’t get an reply. How should we go on because this code
<iframe src=”https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FMaxNagl12%2Fvideos%2F582400838456147%2F&show_text=0&width=560″ width=”560″ height=”313″ style=”border:none;overflow:hidden” scrolling=”no” frameborder=”0″ allowTransparency=”true” allowFullScreen=”true”></iframe>
won’t be shown on my page. When I click on the field I can view the frame of the video but not the video. Also in the forecast I can’t see the video only the space which it needs.
What can I do to change this?
Thanks
Hey,
thanks for the reply.
Basically the shortcodes look like this (I am listing some examples here):
[insert page=’author-syed-balkhi’ display=’content’]
[insert page=’128′ display=’content’]
[insert page=’128′ display=’all’]
[insert page=’128′ display=’custom-author.php’]
where ‘author-syed-balkhi’ is the slug of the inserted content, 128 is the ID (optional, which one you want to use), and ‘display’ defines other options (what part of the content you want to insert, or use a template that handles which parts of the inserted post you want to display and how).
Here is a description of the usage if you need more information:
https://www.wpbeginner.com/plugins/how-to-insert-wordpress-page-content-to-another-page-or-post/
-
This reply was modified 7 years by
tszt2.
Hi there,
I would like to add a widget to the top of my posts only. How can I do this?
I would like it to show on AMP too if possible.
Thanks
If you look at the Widget on the very bottom right in this URL you’ll see that the characters “>>>>>” in each row of the Widget.
https://staging-frenchmorning.kinsta.com
I contacted the developer of the plugin and was told that this is coming from the Theme.
I inspected the page and this seems to be coming from here
#text
baseURI: “https://staging-frenchmorning.kinsta.com/edition/new-york/?customize_changeset_uuid=9a5aa6ef-fca2-41ec-829e-9108fc2bddb5&customize_theme=FrenchMorning&customize_messenger_channel=preview-0”
Thanks for your time looking at this
Am getting tired coz am just repeating my self. And from my the chat above all is clear of what i want.
First i said am using cloud template which i guess the changes for cloud category should be done under td-cloud-library/includes/tdb_module.php (if am wrong correct me)
$buffy .= ‘ ‘. ( get_the_time(‘U’, $this->post->ID) > strtotime( “7 days ago” ))? human_time_diff( get_the_time(‘U’, $this->post->ID), current_time(‘timestamp’) ). ‘ ago’ : $this->get_date();
The code above is giving me wrong time, all posts are showing to be 3 months. I have told u to correct me or show me how i can go about it.
Hey guys,
OK, I have created the following .php page which “reads” the 5 best articles form another portal via JSON.
I don’t to mess up with extra CSS code and using iframe so I thought it would be a good idea to create a block which will show these articles. I want the block’s layout to be exactly the same as Block 1.
So, I copied all the HTML code for Block 1 and I ended up with the following:
<?php
$carStr = file_get_contents('http://www.caranddriver.gr/xml/json/getjson.asp?platform=web&ret=cu&method=oPublicationJSON.getCategoryPublications(41547,1,5)');
//Now decode the JSON using json_decode():
$carJson = json_decode($carStr, true);
// decode the JSON into an associative array
$i = 1;
?>
<?php
function trunc($phrase, $max_words) {
$phrase_array = explode(' ',$phrase);
if(count($phrase_array) > $max_words && $max_words > 0)
$phrase = implode(' ',array_slice($phrase_array, 0, $max_words)).'...';
return $phrase;
}
?>
<?php
echo '<div id=car>';
echo '<div class="td-block-row">
<div class="td-block-span6">
<div class="td_module_4 td_module_wrap td-animation-stack td-meta-info-hide">
<div class="td-module-image">
<div class="td-module-thumb">';
$counter = 1;
foreach ($carJson['publications'] as $row) {
$srcid = $row['src_id'];
$imgid = $row['photos'][0]['img_id'];
$img_type_small = 14000;
if($counter == 1) {
$img_type = 14001;
echo '';
echo '</div></div>';
echo '<h3 class="entry-title td-module-title">' . $row['art_title'] .'</h3>';
echo '<div class="td-module-meta-info"></div>';
echo '<div class="td-excerpt">' . $row['art_summary'] . '</div></div></div> <!-- ./td-block-span6 -->';
} //end if
else {
$img_type = 14001;
echo '<div class="td-block-span6"><div class="td_module_6 td_module_wrap td-animation-stack td-meta-info-hide"><div class="td-module-thumb">';
echo '';
echo '</div></div>';
echo '<div class="item-details"><h3 class="entry-title td-module-title">';
echo '' . $row['art_title'].'</h3>';
echo '<div class="td-module-meta-info"></div>
</div>
</div>
</div> <!-- ./td-block-span6 -->';
}//end else
$i++;
$counter++;
};// end foreach
echo '</div></div>';
?>
I went to Developer Info and read the instructions of creating a new block using a shortcode.
However, the example is simple. It doesn’t help me a lot.
Can anyone guide me to a more relative tutorial which will help me make this code to a block same as Block 1?
Thank you in advance.
Hello,
Thanks for your quick reply.
I want to only category shows on the home page.
Sample:
I create A, B, C categories. And i add every categories a feautured images. Home page show A, B, C categories will appear with the feautured image. User click a category show posts in this category.
like this: https://www.screencast.com/t/143gZzyi3BB9
Regards.
Hi,
I think that you are refering to icons, not logo, for example
-> https://www.screencast.com/t/2SJTKAiBI
-> https://www.screencast.com/t/oYI89l6jYYuM
-> https://www.screencast.com/t/8bgpwmK9qPQ
-> https://www.screencast.com/t/nvYKDeyB
-> https://www.screencast.com/t/WIKAnxWB3jE9
If you want to place icons in the menu, please use this guide: https://forum.tagdiv.com/how-to-add-icons-in-menu/
The craft ideas has it’s own custom icons. They are implemented like so: https://www.screencast.com/t/Wz8IQMqvN2IS
Also if you do not want to use that plugin, you can use this one -> Font Awesome Integration-> https://wordpress.org/plugins/font-awesome-integration/
Thank you!
Hi,
Unfortunately, I cannot see your screenshot because I get an error, sorry! However, if you want to achieve something like this, you need to use a single image element with a custom link which redirects your users to the category you want, like in this example here -> https://www.screencast.com/t/ltIYSng31wmK
Thanks for your understanding!
Hi,
You need to use the mobile plugin that come with the theme version you are using, for example if you have Newspaper v9.1 the only mobile theme plugin that will work for you will be the one from that package.
So if you want you can update the theme to the last version 9.5 and use the mobile theme from the package that you have download or you check what version of newspaper you have and you send us an email at contact@tagdiv.com and ask for mobile theme for your version of theme.
The WPBakery Page Builder plugin is a secondary builder in our theme, is your decision to use or not, we recommend tagDiv Composer , so if you are not using it you can delete it.
Thanks.
I try to open the edits to modify a content, but the window remains still (stanby). I use tagdiv composer.
Below is the message to err in chrome.
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse&ver=5.1:3 GET https://www.vimado.it/wp-content/plugins/td-composer/includes/wpeditor.php?wp_path=/home/wuvdluww/www.vimado.it/ 403
Hi,
For the beginning, please check the following useful guide regarding possible causes of malfunction of TD Composer, from here -> https://forum.tagdiv.com/tagdiv-composer-not-working/ Also, please check if you are using the page menu option, this error might appear. Here I refer to display a page in the menu, using the page ID, like this -> https://www.screencast.com/t/fAONVldeFrwM (it’s an example). Also, if you are using something like this, please notice that’s a bug in theme in this case, and we will fix it in future updates.
Thanks for your understanding!
How can I improve this? Seems like the main issue cannot be changed by me.
Thanks
Hi,
1)By default, please notice that’s the order of them. So, if you need to make some changes over this section, you need to edit the loop single according to your post template used by you and make the following modification. As an example, if you are using the post template style 8, you need to edit the loop-single-8.php like this -> https://www.screencast.com/t/lQqVWBYvDv and the result is here -> https://www.screencast.com/t/P1KbqoAbwO
2)Yes, it’s possible if you will use such a custom CSS code for that. If you want to tune that section, you need to create your own custom CSS code, after using the Inspector Browser, according to our useful guide from here -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/ As a hint, you can try using the code below and place it in Theme panel -> Custom CSS area.
.td-tags a {
color:red;
background:blue;
}
The result is here -> https://www.screencast.com/t/jQNDceBb9
3)If you want to move that section at the top of the page, you should edit the above core file and move the code which I have pointed you above. All of these custom modification can be added to a child theme if you do not want to be overwritten for a next theme update. For more information about how you can use Child Theme please check our useful guide form here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Hope this helps!
Thanks for your understanding!
Hi,
I check your ad-sense ads in post and is appear after 3 paragraphs -> https://www.screencast.com/t/zPQNHmyDM6M
For center amp logo please check this similar topic -> https://forum.tagdiv.com/topic/amp-plugin-few-questions/
Thank you!
Hi,
1. For blank template, just use the Pagebuilder+ Empty page -> https://forum.tagdiv.com/page-templates-2/
If you have the last version of the Newspaper (v9.5) then the empty page was removed, but you can sue it; If you require it, you can download it from here – http://cdn.tagdiv.com/wp-content/uploads/2019/02/page-empty.zip
Place it in the main theme folder, upload it by FTP for example
– http://prntscr.com/mo17zp
Then select it for the pages you want. The footer will be removed and the header can be disabled
– http://prntscr.com/mo17bw
2. For inserting php code in page you’ll need to use some plugins -> https://www.youtube.com/watch?v=-CYe0q1K45I
Thank you!
Hi Team,
Firstly, loving the Newspaper theme and forum – awesome work!
Secondly, please ignore my ignorance if this is something simple I have overlooked but I haven’t found anything in the forums and I still can’t get it to work.
At the moment I am running the mobile theme as well as the desktop version and both are looking good. However, I have recently needed to focus on the speed of the website and as per the recommendations have installed WP Super Cache.
I followed the instructions provided to set up WP Super Cache for Newspaper and on the desktop there are no issues.
However, on the mobile version whenever I add a new post, the posts do not appear in a timely fashion e.g. 6+ hours.
On the desktop version, it is fine posts are updated automatically.
Just wondering what I may have overlooked and how I can fix this.
Cheers,
Matt
Hello everybody
I have a question.
How to change 3 dots on excerpt title and in the post (modul) to any symbol or empty?
I want to change 3 dots to 1 or remove any symbol altogether.
Example:

What needs to be written in the file function.php or anywhere else?
I tried to apply this code in function.php, but it did not work:
function new_excerpt_more($more) {
global $post;
return '';
}
add_filter('excerpt_more', 'new_excerpt_more');
Thanks for the help 🙂
Hi Simion,
i updated Newspaper-Theme to 9.5 – and the slide works fine.
@custom field: i tried to check if value exist (https://www.advancedcustomfields.com/resources/the_field/) as shown in the example http://prntscr.com/mqh9nz – that works in Article Display Wiew M2 (http://s752582646.online.de/category/magazin/new-business) but not by using Block 4 in TD Composer (http://s752582646.online.de/magazin). But i have to check if value exists. So what can i do?
Thanks for your help