- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
As is had the SEO issue: Here is a small workaround (that works for me). I just added an if case, to check for the right page. Maybe it could help you too Dave. 🙂
1. get the id for your home page (in my example below 335)
2. copy the logo-h1.php in your child-theme folder (if you are using the Child Theme Feature): /Newspaper-child/parts/header/logo-h1.php
3. change the following code in logo-h1.php:
if (!empty($td_customLogoR)) { // if retina
if($td_use_h1_logo === true) {
if (is_page(335)) {
echo '<h1 class="td-logo">';
}
else {
echo '<div class="td-logo">';
}
};
?>
<a class="td-main-logo" href="<?php echo esc_url(home_url( '/' )); ?>">
<img class="td-retina-data" data-retina="<?php echo esc_attr($td_customLogoR) ?>" src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
<span class="td-visual-hidden"><?php bloginfo('name'); ?></span>
</a>
<?php
if($td_use_h1_logo === true) {
if (is_page(335)) {
echo '</h1>';
}
else {
echo '</div>';
}
};
} else { // not retina
if (!empty($td_customLogo)) {
if($td_use_h1_logo === true) {
if (is_page(335)) {
echo '<h1 class="td-logo">';
}
else {
echo '<div class="td-logo">';
}
};
?>
<a class="td-main-logo" href="<?php echo esc_url(home_url( '/' )); ?>">
<img src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
<span class="td-visual-hidden"><?php bloginfo('name'); ?></span>
</a>
<?php
if($td_use_h1_logo === true) {
if (is_page(335)) {
echo '</h1>';
}
else {
echo '</div>';
}
};
}
}
edit: I have some formatting errors here and don’t know how to do it better. You should format the code.
Hello,
If you want to add a custom block to a template it has to be done from the theme code. Only pages can be built using the page builder. Other templates do not feature a builder. You can use a do_shortcode function on other templates like this example: https://forum.tagdiv.com/topic/trending-now-on-category/
Thank you!
Here for Eexample:
In this Post: http://www.familienjoe.com/2017/06/20/hallo-welt/ have to show 2 Thumbnails.
echo $td_mod_single->get_image(‘td_1068x0’);
echo $td_mod_single->get_image(‘td_696x0’);
Both are available:
http://www.familienjoe.com/wp-content/uploads/2017/06/Depositphotos_2739528_xs-1068×580.jpg
and
http://www.familienjoe.com/wp-content/uploads/2017/06/Depositphotos_2739528_xs-696×385.jpg
But it will show two times the Featured Image:
http://www.familienjoe.com/wp-content/uploads/2017/06/Depositphotos_2739528_xs.jpg
Here is the example link
https://www.screencast.com/t/0yt3W7t8H
I will appreciate:
1. The border css code
2. border color in addition with the code
3. border spacing in addition with the code if possible
Thanks
Hello,
I would like a help on how to change the writing to COMMENTS at the end of my articles for example, shows in English the words LEAVE A REPLY, COMMENT: NAME: … how do I change these terms in Portuguese or any other language? Where do I edit these names? Thank you.
Hello,
Please provide an example of how you want the border so I can provide the proper code.
Thanks.
Hi,
Maybe you are not creating it properly, or the smart sidebar option is not enabled in theme panel. Here you can see for example how you can create a smart sidebar or enable the feature
– https://forum.tagdiv.com/smart-sidebar-2/
If you have already tried it like this, then it would be helpful if you could provide more information so we can better understand the issue. Or even a link to your website where the problem is present.
Thanks
Hi,
thanks for the reply. Can I add a rel=”nofollow” to each row in the file you mentioned?
If that will solve my the problem, where exactly should I add it?
Like this:
<a rel=”nofollow” class=”td-social-sharing…
or like this
<a class=”td-social-sharing…-facebook” rel=”nofollow” href=”… ?
You are saying that I cannot add a nofollow to multiple links at once. What do you mean? If the above example works, can I just add the nofollow to each row in the code for the different social media?
Thanks
Dear Support,
Where do I install woocommerce demo in Newspaper theme?
Example: http://demo.tagdiv.com/newspaper_tech/shop/
Thanks
Hi, I dont want to change this type of permalink structure, I want to change the words: change “category” to “seccion” for example.
Thanks for the support!
Hello,
I have an issue on my website, quite urgent.
The view counter doesnt work on my webite : it seems like the number is updated only when the user is login. When its logout it doesn’t update when refreshing the page.
In this post for example, we have 168 shares but only 60 views => https://www.myrhline.com/actualite-rh/veulent-travailler-chez-facebook.html
Thank you for your help.
Hello. We’ve noticed random articles (not all of them) that won’t render the sidebar. Post settings are exactly the same as articles that do show the sidebars.
Here is an example: http://williamsonsource.com/10-safety-tips-to-teach-your-college-bound-teen/
Why is this?
Hello,
I have followed this guide –
https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
To add new blocks and modules. However I want to replicate the layout of block 12 and 13. When I copy the code from these blocks the page only displays the header and no content.
Can anyone please advise what I am doing wrong?
Thanks,
I would like to continue to use Newspaper Smart Lists but my problem is that if I make some Smart List, it will not show thumbnail on my Home page. If I add featured image, then it will show thumbnail BUT now Smart List is kind of ruined because every Smart List page, when you click next, now has featured image on top. 😉
Do I miss something somewhere or why is that? It should either be that way by default:
A. Site should take the first picture and generate thumbnail for post
B. Featured image should be only in first Smart List page.
I have one Smart List page at the moment -> https://mkuubis.net/2017/enim-oodatud-videomangud-aastal-2017/

Hello,
For featured images, you cannot add the class, but you can add the css using the class already in use for the featured images.
For example:
.td-post-featured-image{
border: solid 1px #1f3aa3;
}
You can add the code in the theme panel-> custom css box
Thanks.
Hi,
You could set a background color for the title on that block. Like in this example
– https://www.screencast.com/t/YADFukGzuTz
This is the code used, you can change the color to what you want, and then enter it in Theme panel->Custom Css
.td_block_14 .entry-title {
background-color: rgba(77, 178, 236, 0.7);
}
Thanks
Hi,
1. You could try with a FullHD image – 1920×1080px this should provide best results. As an example this is the background image used on a category page in the theme demo
– https://www.screencast.com/t/AFZo2uDS
2. For the mobile menu or search background you can experiment with different image sizes, there is no specified size requirement. You can try a few images and see which is the best to use.
3. For ad tracking maybe you can find a plugin that has the option. Some users have installed the Adrotate plugin, that could have what you are looking for.
4. Post template 8 uses the featured image as background image, that is the style of the template. This will override the website background. You can use a different post template style, if you do not want this to happen.
Thanks
Hello,
Our page builder was not meant to copy or imitate visual composer. If you want to hide a block from a specific viewport it can be done with css.
You can assign a custom class to every element in the tagdiv composer and then simply use your class in this css adding it in the theme panel-> custom code-> advanced css section. Here is an example:
https://www.screencast.com/t/IvXwT6w2vYTf and you can use the class to hide the block on a specific device like so: https://www.screencast.com/t/lqdAM8nu
Thank you!
Hello Paulo Campos,
Before making/customizing your sidebar, you should read our documentation regarding on this thing, like this -> https://forum.tagdiv.com/sidebars-tutorial/ After you get acquainted with these options you should do at Widgets section and there you have to add every block you want to your sidebar, with drag and drop and create your sidebar. So, if you want to load a GIF, you should use the block Text with the title and add there you desired image GIF format.
Thanks for your understanding!
Hello,
If you want to change the color of the text in that particular block, you will have to assign an extra class to the block: https://www.screencast.com/t/dG5p6LNV7eF
Then you can use the custom class to target the block with css and change the colors for that block in particular.
For my example the code would be:
.mycustomclass .td-module-title a, .mycustomclass .td-excerpt, .mycustomclass .td-post-author-name a{
color:white!important;
}
Thanks.
Hi,
You could try an ad inserting plugin, maybe this will allow you to place ads where you need them on your amp pages
– https://forum.tagdiv.com/topic/easy-guide-to-implement-amp-with-newspaper-theme/
Thanks
I installed the demo of “recipe” to make nice recipes on my blog.
How can I achieve the same look as in the sample recipe content? I can’t find a special template for that and there is no instruction to use a plugin….
https://demo.tagdiv.com/newspaper_recipes/td-post-girl-scout-cookie-samoa-shake/
Hi,
in our site design we have a vertical left side menu http://joxi.ru/KAgPJoignblQrl
What would be our steps in order to modify Newspaper theme to implement this vertical menu?
Should we use a child theme, or modify existing theme through API? And if use API, which block will it be, custom header style?
As we understand we need to move template’s grid for this, how we can do this?
Our menu should be also fixed, so no scroll on it while move a page down.
Second question, how we can make a blank template, for landing page for example, so no theme’s header/ footer/ background is injected in this template? As now in simple blank template we have all the theme’s settings, and cannot make any blank page we need.
Thanks 🙂
Hello,
I can not open “New Post” page. it remains blank and I can’t add or type anything there and following message appears at the bottom of the page. however I can edit the already created posts.
Please tell me how to solve the issue. I didn’t upgraded Visual composer but this message appeared automaticaly from 1 day.
deprecated and are no longer supported in newer versions of Visual Composer.
o Contact Form 7Place Contact Form7
o RowPlace content elements inside the row
o Text BlockA block of text with WYSIWYG editor
o SectionGroup multiple rows in section
o IconEye catching icons from libraries
o SeparatorHorizontal separator line
o Separator with TextHorizontal separator line with heading
o Message BoxNotification box
o Facebook LikeFacebook “Like” button
o Tweetmeme ButtonTweet button
o Google+ ButtonRecommend on Google
o PinterestPinterest button
o FAQToggle element for Q&A block
o Single ImageSimple image with CSS animation
o Image GalleryResponsive image gallery
o Image CarouselAnimated carousel with images
o TabsTabbed content
o TourVertical tabbed content
o AccordionCollapsible content panels
o Pageable ContainerPageable content container
o SectionSection for Tabs, Tours, Accordions.
o Custom HeadingText with Google fonts
o ButtonEye catching button
o Call to ActionCatch visitors attention with CTA block
o Widgetised SidebarWordPress widgetised sidebar
o Posts SliderSlider with WP Posts
o Video PlayerEmbed YouTube/Vimeo player
o Google MapsMap block
o Raw HTMLOutput raw HTML code on your page
o Raw JSOutput raw JavaScript code on your page
o Flickr WidgetImage feed from Flickr account
o Progress BarAnimated progress bar
o Pie ChartAnimated pie chart
o Round ChartPie and Doughnat charts
o Line ChartLine and Bar charts
o Empty SpaceBlank space with custom height
o Post GridPosts, pages or custom posts in grid
o Media GridMedia grid from Media Library
o Post Masonry GridPosts, pages or custom posts in masonry grid
o Masonry Media GridMasonry media grid from Media Library
o Old TabsTabbed content
o Old TourVertical tabbed content
o Old AccordionCollapsible content panels
o Block 1
o Block 2
o Block 3
o Block 4
o Block 5
o Block 6
o Block 7
o Block 8
o Block 9
o Block 10
o Block 11
o Block 12
o Block 13
o Block 14
o Block 15
o Block 16
o Block 17
o Block 18
o Block 19
o Block 20
o Block 21
o Block 22
o Block 23
o Block 24
o Block 25
o Big Grid 1
o Big Grid 2
o Big Grid 3
o Big Grid 4
o Big Grid 5
o Big Grid 6
o Big Grid 7
o Big Grid 8
o Big Grid 9
o Big Grid 10
o Big Grid 11
o Big Grid 12
o Big Grid Full 1
o Big Grid Full 2
o Big Grid Full 3
o Big Grid Full 4
o Big Grid Full 5
o Big Grid Full 6
o Big Grid Full 7
o Big Grid Full 8
o Big Grid Full 9
o Big Grid Full 10
o Big Grid Slide
o News ticker
o Video Playlist
o Video Playlist
o Ad box
o Image box
o Author box
o Authors box
o Homepage post
o Popular category
o Slide
o Text with title
o Weather
o Exchange
o Instagram
o Pinterest
o List Menu
o Social Counter
o Revolution SliderPlace Revolution slider
o Revolution Slider 5
o WP SearchA search form for your site
o WP MetaLog in/out, admin, feed and WordPress links
o WP Recent CommentsThe most recent comments
o WP CalendarA calendar of your sites posts
o WP PagesYour sites WordPress Pages
o WP Tag CloudYour most used tags in cloud format
o WP Custom MenuUse this widget to add one of your custom menus as a widget
o WP TextArbitrary text or HTML
o WP Recent PostsThe most recent posts on your site
o WP CategoriesA list or dropdown of categories
o WP ArchivesA monthly archive of your sites posts
o WP RSSEntries from any RSS or Atom feed