- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hello,
I want to replace the Featured Image with a Revolution Slider. There is a method to replace it at https://www.themepunch.com/revslider-doc/add-on-featured-slider/ utilizing the following sample code:
$total_image = wp_get_attachment_image_src( get_post_thumbnail_id() , 'total-blog-header' );
echo do_shortcode('[featured_revslider][/featured_revslider]');
Your code doesn’t quite match up since it doesn’t use $total_image but rather it uses:
echo $td_mod_single->get_image('td_696x0');
How can I update the loop-single.php code to incorporate the slider? I have tried the following to no avail.
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
//BEGIN SLIDER REVOLUTION FEATURED IMAGE REPLACEMENT END
if (empty($total_image[0])) {
echo $td_mod_single->get_image('td_696x0');
} else {
echo do_shortcode('[featured_revslider][/featured_revslider]');
}
//END SLIDER REVOLUTION FEATURED IMAGE REPLACEMENT
// echo $td_mod_single->get_image('td_696x0'); //ORIGINAL CODE IN THIS BLOCK
}
I am using Newspaper theme. How I can paste the following JavaScript code below and integrate into the footer/end of body tag of my website:
<script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=c85c8855-aaf0-4059-b6eb-f49ba9614543″></script>
I was just using the ctrl+k as an example. I do use a plug-in to make “rel” references easier to input on hyperlinks so that’s why it looks different. But it does the same thing with any pop up. Even on drop down menus like for text type. Here is what happens when I click on the “paragraph” text drop down. I show what happens in theses screen shots.
And yes, I re-activated the theme.
Hi Christ, thanks for your feedback. I think i have to explain more details. First, i have to make this clear that my site enabling membership. Anyone can register.
For example, someone i called “Mr. A” register as a subscriber on my site. And then the other one (Mr. B) register as a subscriber also.
But, when Mr. A read my post, jump post to post, suddenly on his browser he logged in as Mr. B. The photos, comment, everything change to Mr. B.
That’s my issue actually. And sometime, Mr. A suddenly logged in as Mr. Admin. 🙁 So, he can change everything on my site that i don’t want.
Can you suggest me what i have to do?
Thanks.
Hello,
I want feed adverts..
For example:
MY POST
MY POST
ADVERT
MY POST
MY POST
How i can do it ? Help me.. Need adsense ad slots..


Hi,
Please provide an example of the exact issue that is still going on. Is the error in your first reply still showing? Please also try it on a wp default theme to make sure your wp install is running properly.
Thank you!
Sorry, one further question: With my style 5 header, is there a code to include a ‘separator line’ underneath? For example, something like this from style 8: https://snag.gy/OKxhej.jpg
Good Morning from Bali 🙂
Dear TAGDIV Team, i want to ask, is it possible to custom post template on mobile theme ? i want to change with from default style into style 3 or 4, as long the title inside the feature header image, the purpose is easy for me to screen capture and upload it to instagram, so i don’t need to retype anymore, for example: . –>
thank you for your attention 🙂
Hi,
I use a plugin called WP Store locator that uses a custom post type called “wpsl_stores”. This one is already recognized and listed successfully in the Theme Panel of your Theme as a custom post type.
The plugin offers the option to use a custom store page template that I have already used very successfully with my old theme. You can see it working properly with my old theme here: https://www.mudradar.de/ocr-trainingslocation/stuntwerk-koeln
After switching to your theme I wanted to use my custom post template again. To avoid any incompatibilities I decided to do it step by step and create a custom post template along your tutorial and documentation.
As described here: https://forum.tagdiv.com/custom-post-type-support/ I created a new custom single template for it in my child theme.
I copied the “single_template_1.php” into my child theme folder “Newspaper-child” and renamed it into “single-wpsl_stores.php”. I also copied “loop-single-1.php” and renamed it into “loop-single-wpsl_stores.php”.
In my “single-wpsl_stores.php” I changed “locate_template(‘loop-single-1.php’, true);” into ” locate_template(‘loop-single-wpsl_stores.php’, true);” to make the correct loop file been loaded.
../wp-content/themes/Newspaper-child/single-wpsl_stores.php
../wp-content/themes/Newspaper-child/loop-single-wpsl_stores.php
So I made my changes in the “loop-single-wpsl_stores.php” in the <div class=”td-post-content”> exactly the way I did it when using my old theme:
<div class="td-post-content">
<?php //echo $td_mod_single->get_content();?>
<?php
global $post;
$queried_object = get_queried_object();
$address = get_post_meta( $queried_object->ID, 'wpsl_address', true );
$city = get_post_meta( $queried_object->ID, 'wpsl_city', true );
$country = get_post_meta( $queried_object->ID, 'wpsl_country', true );
$destination = $address . ',' . $city . ',' . $country;
$direction_url = "https://maps.google.com/maps?saddr=&daddr=" . urlencode( $destination ) . "";
// Add the map shortcode
echo do_shortcode( '[wpsl_map height="350" zoom="14"]' );
// Add the content
$post = get_post( $queried_object->ID );
setup_postdata( $post );
the_content();
wp_reset_postdata( $post );
// Add the address shortcode
echo "<h2>Adresse & Kontakt</h2>";
echo do_shortcode( '[wpsl_address]' );
// Add the small map shortcode
echo do_shortcode( '[wpsl_map width ="350" height="200" zoom="14" map_type_control="false"]' );
echo '<p>' . __( 'Route planen', 'wpsl' ) . ' </p>';
// Add the opening hours
echo "<h2>Öffnungszeiten</h2>";
echo do_shortcode( '[wpsl_hours]' );
?>
</div>
I uploaded both files into my “Newspaper-child” Theme folder but found out that my changes and amendments are not fully accepted.
I expected to get a page that shows it like here (https://www.mudradar.de/ocr-trainingslocation/stuntwerk-koeln) with the following Elements:
– Map from shortcode
– Content from Editor
– Adress from shortcode
– small Map from shortcode
– Directions link
– opening hours from shortcode
Instead of this, additional information are displayed:
– Map from shortcode
– Content from Editor
– Map = NOT OK
– Adress = NOT OK
– Opening hours = NOT OK
– Adress from shortcode
– small Map from shortcode
– Directions link
– opening hours from shortcode
It seems as if the_content(); (btw: I also tried it with echo $td_mod_single->get_content(); with same results) shows not only the content from the editor (as expected) but also the additional fields where the address and opening hours and the map are maintained in the backend.
Adress & opening hours are part of a box called “store details” and the map is part of a box called “Store Map” in the backend.
It seems as if my custom post template is handled in another way at it has been done before with my old theme. The extra boxes “store details” and “Store Map” haven’t been displayed before switching to your theme and I am wondering how to avoid this.
Do I have forgotten to make any changes in the theme Panel? Or is there a way to filter the additional information?
Looking forward to getting your suggestions on this. Many thanks in advance,
Dinah
When i try to add some objects with power builder , freezes and i need to exit from the page.
for example, inserting button or map
Thanks
Hi, I think my question is not clear.. The current settings only ads social icons to the author box. Instead of icons, possible to add the authors “Follow” button for twitter & facebook?
Apologies. The example URL did not go through for some reason. You can find it here.. hopefully this goes through.
Hello,
I’d like to slightly modify what you have as the Don’t Miss component on the demo to include a “More” link for the category shown.
For example, when the user is viewing All, it will just show as More and will take the user to a page showing all of the posts tagged with the parent category.
When the user is viewing what you have as Style hunter, they will be taken to a page that shows all posts with the Style hunter category.
And so on for the rest of the categories shown. Please note that All (which shows the parent category and all child categories) should just say ‘More’ , whereas the child categories should ideally say ‘More [category name]’.
Any help would be greatly appreciated! Thanks!
Is there a way to hide featured image in a category list?
I have a category that the featured image is the same for all articles and I would like to have the category list with just the title and a bit of text from the article.
for example here:
http://bohionews.com/wp/category/blogs/cotorita/
thanks.
Thanks! The theme is NewsMag
Hello
How are you checking the site? Are you checking the post or the page? Please provide an example.
Thanks.
Hey there,
as the title suggest,
I currently find the column width of the website I am working on, too narrow. As I am working on a 2/3 column on most pages, the contents feels really narrow.
Is there a way I can control to the width I want it? CSS for example.
Current Website Url: http://leapdsc.com/leapdsc/client/hdb
Please advice me on this.
Hello,
Sorry but the plugin is not tested with our theme. We did receive word from our users that the standard AMP plugin made by Automnattic works properly and there is even a guide on it here:
https://ampforwp.com/tutorials/article/amp-in-action-with-newspaper-theme/
We have not tried it ourselves, but it is worth a shot.
Thanks.
Greetings fellow Newspaperers,
I am rather new to WordPress, and I have this issue where my site and the WP-admin is lagging badly. It takes approximately 20s to 5 minutes to load each click.
Example: I click on Appearance > Themes. It takes around 1 minute to load. I am unable to do anything productive.
Here is what I have done so far:
Reinstalled WordPress via my cPanel.
Reinstalled the Newspaper theme.
Deactivated the Tech Demo.
Reinstalled WordPress again. After this it was fine. Each page takes no more than 5 seconds to load.
Reinstalled Newspaper theme. Still fine.
Activated the Tech Demo with Settings only. Lag starts again.
Deactivated Tech Demo again. Lag persists. I am trying to remove the lag.
What should I do? Are there any files in my public_html that I can remove, or manually delete to remove whatever the Tech Demo has done? Thanks in advance.
Hey, i have installed demo newspaper theme by tag div. And after intalling the smae i am facing the below problems. Please suggest what needs to be done.
It seems that some of the icons are missing form the version i doanloaded. My theme version is 8.1.
– Social media icons are not showing up
– Search icon is not showing up
– Dropdown arrows are not showing not showing up
– Back to top button is not showing an arrow
– Views “eye” icon is missing and miss aligned
– Mobile theme does not allow edits or respond to edits from the theme panel!
– Hamburgr menu button is “invisible” on mobile theme
– “<” & “>” arrows not showing in under articles or pagination.
Request your help on priority.
Hi,
You probably have not cleared cache after making the changes. Now your excerpts settings apply but they are too short. You should increase the number as words are not = to letters. You should make the numbers larger. Right now even your titles are being cut.
1) Please check this link: https://codex.wordpress.org/Using_Permalinks
2) Please provide an example of the code you mention. An author and editor has these limitations in place: https://codex.wordpress.org/Roles_and_Capabilities
3) It is the social counter block. Edit your page with the tagdiv composer and delete the element. Please use this guide to learn how to use the page builder: https://forum.tagdiv.com/tagdiv-composer-tutorial/
In order to cahnge category names, you will have to access the wordpress category settings: http://www.wpbeginner.com/glossary/category/
I think you will need a few good WordPress beginners tutorials so you can learn the basic stuff first: Please check this guide: http://www.wpbeginner.com/start-here/
Thank you!
Hi Bogdan,
I have installed demo newspaper theme by tag div. And after intalling the smae i am facing the below problems. Please suggest what needs to be done.
It seems that some of the icons are missing form the version i doanloaded. My theme version is 8.1.
– Social media icons are not showing up
– Search icon is not showing up
– Dropdown arrows are not showing not showing up
– Back to top button is not showing an arrow
– Views “eye” icon is missing and miss aligned
– Mobile theme does not allow edits or respond to edits from the theme panel!
– Hamburgr menu button is “invisible” on mobile theme
– “<” & “>” arrows not showing in under articles or pagination.
Request your help on priority.
im using better amp pluglin as i was using this in previous theme and all previous amp pages are created by this plugin itself
im getting this error ,
Fatal error: Uncaught exception ‘ErrorException’ with message ‘td_js_buffer::add_to_header – the header JS was already rendered when you called td_js_buffer::add_to_header() (ex: was called to late)’ in /home/idigita8/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_js_buffer.php:21 Stack trace: #0 /home/idigita8/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_js_generator.php(178): td_js_buffer::add_to_header(‘ \r\n\r\n\t va…’) #1 [internal function]: td_js_generator(”) #2 /home/idigita8/public_html/wp-includes/class-wp-hook.php(298): call_user_func_array(‘td_js_generator’, Array) #3 /home/idigita8/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #4 /home/idigita8/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/idigita8/public_html/wp-includes/general-template.php(2589): do_action(‘wp_head’) #6 [internal function]: wp_head(”) #7 /home/idigita8/public_html/wp-includes/class-wp-hook.php(298): call_user_func_array(‘wp_head’, in /home/idigita8/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_js_buffer.php on line 21
Hi,
I just noticed that the sidebar on article posts is overlaying the main body of text on the posts.
After reading over different posts here on the forums I deactivated all the plugins I’m using and the error still occurs.
I then thought it might have something to do with the new tagdiv composer, so I deactivated and deleted that plugin and the error still occurs eith that as well.
I cleared the cache after both deactivating all the plugins and deleting the tagdiv composer and still no luck. I have since reactivated all the plugins except for tagdiv composer since it is deleted.
You can see an example of the error here: https://www.todaysrdh.com/50-tips-and-insights-about-productivity-happiness-and-life/
How can I get the posts displaying properly again?
Thanks!
So I’m not entirely sure why, but everything I’ve tried to do to get the styles to load will not work. I’ve checked the source code of my home page and the styles are being included and after the parent theme, but nothing loads. Has anyone had this issue with Newspaper before?
My site is http://www.miningclips.com
you can see the style sheet is loaded http://www.miningclips.com/wp-content/themes/Newspaper-child/style.css?ver=8.1c
this example styles will not override or load the parents styles
input[type=text], input[type=url], input[type=tel], input[type=email] {
background: #ffffff;
border: 1px;
border-radius: 5px;
}
.mcForms{
background-color:blue;
}
Hey there, as the topic suggests, is it possible for me to achieve the desired look for the Footer based on the reference I am listing below?
I have tried including the black bar with red borders for the website. However, is there a way where I can input the following text ‘© 2016. HOUSING & DEVELOPMENT BOARD. ALL RIGHTS RESERVED….’ above the black bar?
Current Website Url: http://leapdsc.com/leapdsc/client/hdb/
Website Reference (Desired Look): http://www20.hdb.gov.sg/fi10/fi10221p.nsf/arxvi/index.html
Please advice me on this.