- NewsmagBlock settings tutorial
- NewsmagCategory tag on modules/blocks
- NewsmagtagDiv Composer Tutorial
- NewsmagWeather Widget
- NewsmagExchange widget
- NewsmagInstagram widget
- NewsmagHow to use the Visual Composer plugin
- NewsmagIntroduction
- NewsmagFooter templates
- NewsmagCustom ad spots
- NewsmagLoading image effects
- NewsmagSmart sidebar
- NewsmagFeatured images
- NewsmagGeneral settings
- Newsmag7 days post sorting
- NewsmagTheme thumbs
- NewsmagExcerpts introduction
- NewsmagTheme colors introduction
- NewsmagtagDiv slider gallery
- NewsmagVideo playlist
Hello,
We are using ad block here all the time on multiple browsers and we didn’t encounter this before.
1. try this: disalbe all plugins
if that doesn’t work.
2. try to install your site on another domain: instead of http://test.beatzmag.com/ use http://mysite.beatzmag.com/ or something like that.
One of adblocks filters removes some content from the theme and I don’t know which one.
Radu from tagDiv
Also the Ajax for the sub categories also doesn’t work
Exactly what I wanted. Thank you very much!
The slider also doesn’t work via Firefox and Chrome with Adblock on (everything up to date) Is this theme completely broken then if someone has adblock on?
That message is not from
Anything, I put it there because if Adblock is enabled it actually makes the tabs no longer work properly. Revolution Slider is also blocked so I had to switch to the regular slider.
The pagination issue is caused by offset parameter. I set offset argument to 5 in order not to repeat the posts in the slider. But this causes the “paged” attribute in WP_Query to be ignored. This is documented in WP Codex:
offset (int) – number of post to displace or pass over.
Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination (Click here for a workaround).
Making Custom Queries Using Offset And Pagination
http://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination
I adopted the solution above to my situation as here:
Newspaper-child\functions.php
add_action('pre_get_posts', 'myprefix_query_offset', 1 );
function myprefix_query_offset(&$query) {
//Before anything else, make sure this is the right query...
$not_in_ajax_call = get_permalink();
$in_home_page = ! is_page('');
if ( $not_in_ajax_call && $in_home_page ) {
return;
}
if ( empty( $query->query['offset'] ) ) {
return;
}
$offset = $query->query['offset'];
//Next, determine how many posts per page you want (we'll use WordPress's settings)
$ppp = get_option('posts_per_page');
//Next, detect and handle pagination...
if ( $query->is_paged ) {
//Manually determine page query offset (offset + current page (minus one) x posts per page)
$page_offset = $offset + ( ($query->query_vars['paged']-1) * $ppp );
//Apply adjust page offset
$query->set('offset', $page_offset );
}
else {
//This is the first page. Just use the offset...
$query->set('offset',$offset);
}
}
-
This reply was modified 12 years by
mertnuhoglu.
Hello,
you can try this: http://screencast.com/t/oJRbaGHeuexx
Only via code: edit that file and move that line of code: http://screencast.com/t/I13U1n6UmJ
Hello,
1. go to theme customizer
2. newspaper: theme options
3. try this setting http://screencast.com/t/DSUZRxdw4VWe (the full list of modules is here: http://import.tagdiv.com/newspaper/doc/#blocks )
4 …
😉
Hello,
with adblock I get a strange message: http://screencast.com/t/H0ERWNf1M
That message is from one of the installed plugins.
Radu from tagDiv
Is is possible to move the whole review overview box with the summary block to the top of the article underneath the featured image?
Hello, I want to use My favourite posts plugin on the theme and add a PHP code for the link users can press to add the post to their favourites list.
Is it possible to edit the blocks php and add it next to the post view count just under the article title on the blocks.
Thanks!
Is this blocked by everyone elses Adblock?
Why would this be happening been trying to look everywhere..
Hello,
I see you have added on post, to align with other social inline add this in style.css
.td-social-sharing ul li {
display: inline-block !important;
}
.td-social-vkontakte #vk_like {
width: 120px !important;
}
Thanks
Hello,
That is not the correct shortcode
the corect shortcode is: [vc_tabs][vc_tab title="Top News" tab_id="1384786254-1-99"][td_block4 category_id="17" sort="popular7" hide_title="hide_title" limit="5"][/vc_tab][vc_tab title="Random News" tab_id="1384786254-2-29"][td_block4 category_id="17" sort="random_posts" hide_title="hide_title" limit="5"][/vc_tab][/vc_tabs]
Try it
Hi Marius,
The problem is caused by offset attribute in WP_Query as described here:
offset (int) – number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination (Click here for a workaround).
A workaround is described here.
I try to implement that solution. Any help will be appreciated.
I figured it out. Thank you.
http://test.beatzmag.com/content/news
I did what you said and as you can see, its all completely messed up?
this was the shortcode i copied
“[vc_row][vc_column width="1/1"][vc_tabs][vc_tab title="Top News" tab_id="1384786254-1-99"][td_block4 category_id=”17″ sort=”popular7″ hide_title=”hide_title” limit=”5″][/vc_tab][vc_tab title="Random News" tab_id="1384786254-2-29"][td_block4 category_id=”17″ sort=”random_posts” hide_title=”hide_title” limit=”5″][/vc_tab][/vc_tabs][/vc_column][/vc_row]“
Hello,
This is the variable that instructs the ajax part what columns to load: http://screencast.com/t/CrdGo3RN . You can hardcode it but it will affect all the modules. You can also check the block type with this: http://screencast.com/t/vJcjhFy2N
hope this helps,
Radu from tagDiv
Love this idea
I set the Block 3 component in home page as infinite scroll. Infinite scroll works but same posts are repeated in every new loading:
http://dl.dropbox.com/u/103580364/temp/000779.jpg
The web site is here:
All plugins are deactivated.
Could you please check this problem? I send the access credentials to contact@tagdiv.com
Please add a function to disable sub-categories.
Als eine Möglichkeit habe ich bereits oben beschrieben. Die Funktion mit dem Einleitungstext findest du im Äquivalent zum Block 3 des Visual Compoer hier:
wp-content/themes/Newspaper/includes/apps/modules/td_module_6.php
Du fügst einfach unterhalb Zeile 22 folgendes ein:
$buffy .= $this->get_excerpt(td_util::get_option('tds_mod6_content_excerpt'));
Das ist eigentlich der Textauszug für “Block 2”. Wenn du eine eigene Option dafür benutzen möchtest, muss das hier definiert werden:
wp-content/themes/Newspaper/includes/apps/td_customizer.php
Zeile 336 einfügen
$td_customizer_settings->add_input('Content length (words)', 'mod6_content_excerpt');
Dann kannst du die Länge über den Customizer bestimmen
Mit den beschreiben Einstellungen funktioniert es auf jeden Fall wie in deinem Screenshot. 🙂
-
This reply was modified 12 years by
mbasche.
Looking through the ajax php, I don’t think there’s anything in there to force my custom block to render 4 columns.
In my custom block, I had set $td_column_number in function inner to 4 to force the block to render 4 columns. But maybe this isn’t the correct way to do it? If I understand the ajax php file, it gets the column number from the block. But I’m not sure how to get my custom block set to 4 columns and also the ajax…
Hello,
I just purchased the theme last week and have a developer to install it.
I finally heard back from him with this comment:
… You have nearly 6500 posts, and unfortunately all of them are set up “incorrectly”.
What I am referring to is that none of the posts use the featured image function. Instead, the primary image is just embedded as part of the post text. This approach is very outdated and most WordPress themes do not even support this anymore.
So we are left with two options to get things working properly: manually add a featured image to every post OR try to find a work around and edit the theme (I am working on this right now).
I’m looking for a plugin that could accomplish this as I am sure that this is not the first time someone has come across this issue.
I’ll keep you posted as things progress.
A little surprised here, as I thought that featured images is an optional function.
Are images in the posts really outdated and is it possible to set up the Newspaper theme
with my current posts, which have images inside each post (top, alignment none)
Thanks
My current them is suffusion by sayontan, which displayed images just fine