- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hello,
You can try to use visual composer and a tab element to have different sorting options on each tab. Unfortunately this is only available for pages, not for category archives.
Here is an example of what I mean: https://www.screencast.com/t/ByTKINqN9XwE
You can add a different block with different content under each tab section.
Thank you!
Hi,
Please provide a link to your website where this is happening or some examples, so we can inspect the issue.
Thanks
Couple of things:
a) never use inline styles for HTML anymore
b) only use CSS classes
e.g.
.mycenter{text-align:center}
then use that class on your td cells.
c) in responsive layouts, table cells would be percentages, not pixels, such as
.td7{width:7%}
d) to have a table cell be ‘responsive’ each row would need to be able to reduce in size; however on phone it would get cut off, and you’d need to use an overflow class to hide that.
(See the ‘bootstrap’ css classes for examples.)
For responsive columns, you’re better off using a grid system with custom CSS.
There might be a tables plugin for WordPress you could look at which builds all this into one thing for you.
This is actually one of the reasons we’re moving all our sites back to Bootstrap, for this kind of stuff.
However, TagDiv might have a built-in class setup for tables; and it wouldn’t hurt to inspect the main style.css file yourself to look for table classes in there.
Food for thought, anyway đ
( I don’t work here. )
1)
I have newspaper 7.
Didn’t use it till now. So I a new here…
2)
Is it possible to get the new demos (I don’t see business demo for example).
3)
Should I install tagDiv Composer?
And how?
Is it a plugin? I can’t find it in wordpress.
If not, I get this message:
There is a new version of WPBakery Visual Composer available. View version 5.2.1 details. Automatic update is unavailable for this plugin. To receive automatic updates license activation is required. Please visit settings to activate your Visual Composer. Got Visual Composer in theme?
So what is the license to updat that plugin?
Hi, sorry if I bore you, only a question, please: how can I change the colour of the background title of the category you see in the homepage? For example: “sport” or “news” etc… In the theme panel I didn’t find. I went to “colours” and “categories” but I didn’t find. Thank you
a) on the theme settings for turning thubnails on
b) on the web, such as in Chrome, you can use F12 console inspector to look at the image size “rendered” on the page
c) on the web, with Chrome, you can inspect any image, by right-mouse-click ‘inspect’ to open console: so, if I do that on, say the avatar of your photo here on forum:
src="http://2.gravatar.com/avatar/2813d211a0d1a5c2d5ec3043f7ab7555?s=200&d=identicon&r=g" width="200" height="200" alt="" class="avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default td-animation-stack-type0-2"
this shows the width and height of the rendered content.
If you use “rows” vs “columns” with responsive design when elements contract, only the row contracts.
so
[ [content] [content] ]
———————–
[ [content] [content] ]
in above example, when each ‘row’ contracts, if different amount of content in each [area], then one will be taller than other, as the ‘row’ is still the same height for ALL content in that row <—–>
This is why I do
———————-
[{content}][{content}]
{more} {more}
{more} {more}
———————-
this way if content taller in right, stuff on left moves up.
Hope that made sense đ
Hi Tagdiv,
I want to make my page look like Post Template 7 without sidebars and
with the option of having sidebars later if need be.
Can this be done, is there any way to accomplish that.
I remember, there use to be some types of templates in visual composer,
such as landing page etc. how to get those templates for free,
since VC is already bundled with N8.
Awaiting an insightful & helpy đ reply
Thanks Tagdiv
I had an existing site using the Newspaper theme and I just added the plug-in Tag Div Composer and Deactivated Visual Composer. Then I downloaded one of the demo sites called “health & fitness”. (And I see that my old blog posts are showing up which is good).
since I am using your demo site. Do I need to totally recreate the site pages with Tag Div Composer?
And do I delete the old version of the pages?
If I need to do this then how do I do this? I am not sure where to start.
(When I edit the page using Tag Div Composer I see red bars at the top of the screen that say Invalid Page Template)
Hi,
My function.php (Child-Theme) can not be applied.
What am I missing?
<?php
/* —————————————————————————-
Newspaper V6.3+ Child theme – Please do not use this child theme with older versions of Newspaper Theme
What can be overwritten via the child theme:
– everything from /parts folder
– all the loops (loop.php loop-single-1.php) etc
– please read the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/
– the rest of the theme has to be modified via the theme api:
https://forum.tagdiv.com/the-theme-api/
*/
add_action(‘init’,’add_categories_for_pages’);
function add_categories_for_pages(){
register_taxonomy_for_object_type(‘category’, ‘page’);
}
add_action( ‘pre_get_posts’, ‘nobita_merge_page_categories_at_category_archive’ );
function nobita_merge_page_categories_at_category_archive( $query ) {
if ( $query->is_category== true && $query->is_main_query() ) {
$query->set(‘post_type’, array( ‘post’, ‘page’, ‘nav_menu_item’));
}
}
function custom_wp_tag_cloud($args) {
$myargs = array(
‘orderby’ => ‘count’, //使ç¨é ťĺşŚé
‘order’ => ‘DESC’, // éé ďźä˝żç¨é ťĺşŚăŽéŤăé ďź
‘number’ => 40 // 襨示ć°
);
$args = wp_parse_args($args, $myargs);
return $args;
}
add_filter( ‘widget_tag_cloud_args’, ‘custom_wp_tag_cloud’ );
// ĺşĺŽăăźă¸ăŤăżă°ăč¨ĺŽ
function add_tag_to_page() {
register_taxonomy_for_object_type(‘post_tag’, ‘page’);
}
add_action(‘init’, ‘add_tag_to_page’);
// ăżă°ă˘ăźăŤă¤ăăŤĺşĺŽăăźă¸ăĺŤăă
function add_page_to_tag_archive( $obj ) {
if ( is_tag() ) {
$obj->query_vars[‘post_type’] = array( ‘post’, ‘page’ );
}
}
add_action( ‘pre_get_posts’, ‘add_page_to_tag_archive’ );
add_theme_support(‘post-thumbnails’);
/* —————————————————————————-
add the parent style + style.css from this folder
*/
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 1001);
function theme_enqueue_styles() {
wp_enqueue_style(‘td-theme’, get_template_directory_uri() . ‘/style.css’, ”, TD_THEME_VERSION, ‘all’ );
wp_enqueue_style(‘td-theme-child’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘td-theme’), TD_THEME_VERSION . ‘c’, ‘all’ );
?>
Hello suprim,
Do you want to achieve this kind of menu -> https://www.screencast.com/t/9Lu6EkbBjW?
If you want to make your mega menu items to be similar to the âTravelâ menu example -> https://www.screencast.com/t/K6RrMzKJ3X, you want to do that please consult the topic here -> https://forum.tagdiv.com/topic/mega-menu-with-grid-columns/ because there you will see all the steps which are needed to take in this regard for achieving this layout.
If you want to display more levels in our theme and you are not aware of all steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Hope this helps and let us know how it goes!
Thanks for your understanding!
I have setup the home page, applied the block13 for 3 categories,but I found the links of two categories can’t work today ,but they work well on desktop.
I don’t know what happened.
My website is :https://eaglevisiontimes.com
And the categories are Travel and Tradition & Classical.
Can anybody help me?
Thanks.
in console i get this error
/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=8.0 Failed to load resource: the server responded with a status of 403 ()
Mixed Content: The page at ‘https://thumbzuptv.com/wp-admin/admin.php?page=td_theme_panel’ was loaded over HTTPS, but requested an insecure image ‘http://thumbzuptv.com/wp-content/uploads/2017/07/144-2.png’. This content should also be served over HTTPS.
Hi,
You could try a code like the one below for example. It will make the header look like this
– https://www.screencast.com/t/fWlrWYUQyKxA
And also the header when sticky will look like this (this can be removed if you don’t want it – the last part of the code)
– https://www.screencast.com/t/gIDKDK4w4t4
Enter it in Theme panel->Custom CSS
.td-header-style-5 .td-header-menu-wrap-full {
background-color: transparent;
}
.td-header-style-5 .td-header-main-menu {
background-color: #1e73be;
}
.td-header-style-5 .td-header-menu-wrap.td-affix {
background-color: transparent;
}
Thanks
Hi,
Each Big grid has predefined styles that you can select. Those can be seen here for example for the grid you mention
– https://demo.tagdiv.com/newspaper/full-big-grid-5/
If you would like to keep the current grid style, you can try this code that will remove the shadow applied on the thumbnails
– https://www.screencast.com/t/G136zrY1g0nD
Enter the code in Theme panel->Custom CSS if you decide to use it
.td_block_big_grid_fl_5.td-grid-style-1 .td-module-thumb a:last-child:before {
display: none;
}
Thanks
Hello coursey,
If you want to move the comments section to be right below the post content, you should change a bit your code in order to achieve any good results. For example, if you are using the post template style 2 you should make the following changes like this ->
https://www.screencast.com/t/zhyXHDMc
Hope this helps!
Thanks for your understanding!
Hi wonderful people!
I’m testing out the great background ad function. Following the tutorial and all dandy. Except I can’t seem to graps where to, or how, to control margins on the header in the top.
I’d like top part of my background image to be visible :
https://www.dropbox.com/s/il5zwj8pwoo0o57/background-newspaper-test.jpg?dl=0
almost as you show in the tutorial (only the header seems transparent). I tried changing head types but didn’t manage to replicate the example.
https://forum.tagdiv.com/wp-content/uploads/2014/10/bg-ad.png in page https://forum.tagdiv.com/newsmag-background-ads/
What I’m I missing? đ
Best regards
Bernt
Hi,
You can try a code like this for example, it should work for all the grids and remove the shadow you mention
– https://www.screencast.com/t/gVPEdQbyri
.td-grid-style-1 .td-module-thumb a:last-child:before {
display: none!important;
}
Enter the code in Theme panel->Custom CSS section.
Thanks
Hi,
The background setting will apply on the whole website. There is no option to set a background only for specific pages or posts. When setting a background through the theme panel some classes will be applied to make the website boxed, it would be hard to replicate that for particular pages.
On pages, with the tagDiv composer you can set background colors or images for the rows for example
– https://www.screencast.com/t/uniivqFv6X
You could try with custom code based on page ID, maybe something like this
– https://www.screencast.com/t/oAMORoVH
.page-id-16558 .td-container-wrap {
width: 1164px;
}
@media (max-width: 1180px) {
.page-id-16558 .td-container-wrap {
width: 100%;
}}
body.page-id-16558 {
background-color: red;
}
But this is not tested properly, you could give it a try if you want to or modify the code further. Use the browser inspector to identify the elements and classes on the page
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
Thanks
I have started experimenting with moving to the Gadgets template for my site. However I have encountered an issue where the Main Menu is overlapping the content on standard pages (like the homepage) that uses the default page template. If I change the template to for example “standard template + heading” the issue goes away. However I do not want to have a header (that says “Home”) on the top of my frontpage.
It is like the Main menu gets floated over the content. And that the content starts at the top of the page with the Main menu placed on top of it. Maybe a fixed position issue somehow?
What can be done about this? The issue doesn´t seem to be present at the demo page (https://demo.tagdiv.com/newspaper_gadgets/). However I have a hunch it might have something to do with the fact that the top pictures are aligned directly with the menu (as seen in the demo). I.e there is no space (padding) between the menu and the beginning of the actual content.
Hope you understand what I mean. Can´t send you a link unfortanely since the test-site is only backend.
Hi folks,
I know you’ve had a couple of threads like this already: this one and this one, for example.
I just had the same issue, and decided to investigate cron schedules. Sure enough, by page load, all custom cron schedules are wiped out except for the “three_days” one that Newspaper adds.
The issue is in your cron schedule filter.
In td_js.php in the constructor for td_version_check you add the filter:
add_filter( 'cron_schedules', array($this, '_schedule_modify_add_three_days') );
Here is your callback:
function _schedule_modify_add_three_days() {
$schedules['three_days'] = array(
'interval' => 259200, // 3 days in seconds
'display' => 'three_days'
);
return $schedules;
}
As you can see, you are missing the $schedules parameter. This would bring it in line with WP’s reference for the filter.
(Ironically, in version 7.8.1, this filter with the same bug appeared in td_cake.php. In 8.1, td_cake.php has the correct filter but the file is commented out. I guess you lost track of this bugfix!)
Temporary fix for other users: Either modify the theme file directly by pasting this code into Newspaper/includes/wp_booster/td_js.php … or set any add_filter calls for the cron_schedules hook to priority 11 or greater so that they take place after the one in td_js.
Forgot to include this article, also:
https://www.wordfence.com/blog/2017/08/traffictrade-malware/
attackers modify your
wp_optionstable to inject the malicious code into that table
What TrafficTrade Malware Does On Your Site
Once you have been infected with TrafficTrade, it injects Javascript onto your site that loads from the TrafficTrade.life domain. The actual script is very simple.
It redirects your visitors to a âtrafficreceiverâ domain which then does further redirects to whichever campaign they are running. In the case of my test, you are redirected to a site that wants you to install a Chrome plugin â most likely malicious.
Seems this IP range would be useful to block:
79.110.128.0 â 79.110.135.255
<hr>
HOW TO CLEAN DBASE!
https://wpfixit.com/traffictrade-wordpress-infection/
REMOVE INFECTION SCRIPT FROM SITE
The goal here is to track down where the script we mentioned above exists and them remove all traces of it. The scanning we did in the previous step will likely show you what files on your site have this script but it will not show you where in the database it remains.
Run Search and Replace Using a Plugin
Our favorite search and replace plugin is Better Search Replace. Install and active this plugin to search and replace database content. You would simply run a search for the script above and replace it with an empty filed.
Run Search and Replace Using a SQL Query
To do this, you will need phpMyAdmin access. This access allows you entry to edit the database that your WordPress site runs on. Once you have this you will run the SQL Query below which will search the entire database for the bad script and remove it.
UPDATE wp_posts SET post_content = REPLACE(post_content, '<script src=\'https://traffictrade.life/scripts.js\' type=\'text/javascript\'></script>', '') WHERE INSTR(post_content, '<script src=\'https://traffictrade.life/scripts.js\' type=\'text/javascript\'></script>') > 0;
-
This reply was modified 9 years by
simchris.
This is a simple example of how an effect of buttons and parallax can make the site more attractive and beautiful.
http://www.artecontrolada.com.br/
We will be waiting for new updates.
Thank you and see you later.
Dear Admin
I’m using Newspaper V 8.1 I’m not using tagDiv Mobile Theme
Pages running well on mobile, while posts are giving blank white screen
My website url
amel.org
Post url example
http://amel.org/how-to-introduce-amel-association-international-in-30-seconds/
Basically it means a character is not ‘encoded properly’ someplace. This can happen in RSS feeds, or some elements not properly ‘escaped’ or can even be from using something like Yoast SEO and not actually auditing the meta data printed in your post source.
Also be aware Google is in midst of major overhaul moving everything to ‘mobile first’ — we’ve been seeing weird stuff like rectangle images not cropped and shown as distorted squares in Google news, where one “view” on desktop still shows desktop layout, but now using the mobile rectangle image, then another search shows the mobile first layout with rectangle image and simpler page layout ….
soooo….. if it just started it might have nothing to do with you.
The issue is more common if you’re importing content from other sources into your site, and the encoded content isn’t re-encoded to UTF-8/HTML and you get stuff like a ⢠in text that should be & trade; or & #153;.
I’m noticing right now in latest versions of WordPress a funky thing when I paste in stories from MS Word, that the curly quotes, long dashes, and trademarks are not converting to HTML entities when viewed on the text/code view of post editor.
Anyway — check your problem posts to see if you perhaps have “long dashes” in your titles vs hyphens — switch to using a single ” – ” vs using a — long dash or other element.
Not sure that helped … but some two cents.