- TutorialsDefault Block Settings Guide
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hi,
You can use do_shortcode function and display 2 custom ads bellow the menu for all pages like this:
*edit header template that you use(I guess it is default) and add the code – http://screencast.com/t/aSDNZlOzk
<div class="td-container">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_2"]');?>
</div>
*use this custom css in Theme Panel > Custom Css – http://screencast.com/t/dFXToqBr
.td-header-style-1 .td-a-rec-id-custom_ad_1 {
float: left;
margin-right: 20px;
}
.td-header-style-1 .td-a-rec-id-custom_ad_2 {
float: left;
}
Please not that this is an example how this can be achieved. For non-adsense code we suggest to use this div container and add a specific image size for each device – https://forum.tagdiv.com/header-ad/
If you use adsense code you can control the size from Theme Panel for each ad spot – http://screencast.com/t/Nczvl9AbRGHY
If you don’t have basic php/html/css experience I suggest to hire a professional developer to do this for you.
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].
-
This reply was modified 10 years by
Alin [tagDiv].
It’s really not working, is it bercause I filter the block with different categories?
I tried to make a workarround by creating a new block on top of that one and filter after a new category for sticky posts. It didn’t work as the block is allways shown no matter if there are posts or not (when no posts exist on category, the block shows empty with the top colored bar).
I really love this theme but I also really need this feature. It’s really a must have! Sticky posts are one of the most core functions of wordpress, how come you didn’t think of this?
How can I workarround this?
Hi
The block should be displayed fine with this layout, so if you still have this issue please make sure that the browser zoom settings are on default values, otherwise the layout may be affected: http://screencast.com/t/f7HfjUhRH
Thanks!
Hi,
Ok, I have added this again on our list to be modified.
Regarding the width and height, I have checked this on my side. It should work for no thumbs images, just make sure that the thumbs are enabled from Theme Panel > Block Settings – http://screencast.com/t/lWUDYWOO4R – http://screencast.com/t/M9gbrHtkR
Thanks!
Hello Rob,
The posts displayed can be controlled using filters from the block settings. You can filter your blocks by category, tag, author or post type. You can read more about block settings here: https://forum.tagdiv.com/block-settings-tutorial/
You can check other sections of our documentation as well. You will find lots of useful information there.
Thank you!
Hi
Block settings can be found in Visual Composer editor: http://screencast.com/t/dE0wsfq6qg
Thanks!
“Show a quote (only when this article shows up in blocks that support quote and only on blocks that are on one column)”
Which blocks are these?
I can’t get the quotes to work. I pasted a quote in the post, but it did not appear>
Would like to do something like this: http://www.timeout.com/london
Instead of having an excerpt pop up under the image. Is this possible?
Thanks
This helps. Two followups:
1. For #1, where do I go to modify the max-height from 400px to something bigger?
2. For #1, do I access that file from my wordpress dashboard or via my host?
Lastly, if I modify this .block-mega-child-cats setting, will it get overwritten if I do a theme update to the next version of Newspaper? I have Newspaper 6.2
Hi,
I’m displaying 3 google adsense on my website : 2 in the article page -> top and bottom of the article / one in the sidebar.
In order to avoid having my account stopped, i would like to display a mention “Advertissement” just at the top of each ads. How can I do it? I tried to add it within the ads menu of the newspaper theme options but i doesn’t display anything.
Here is what I tried to do :
<p>Publicité
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<ins class=”adsbygoogle”
style=”display:block”
…
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
Does someone has a solution?
More information about how to comply with adsense rules?
Here is an example : http://buzzissime.com/piqures-abeilles/
Thanks in advance
Hi, I changed it out after I posted above. The white titles were indeed not showing p in the block.
=(
Dear Sir,
I am not able to find block setting
where is this located?
Regards,
Pradeep Mistry
Hi Alin, the only code I’m using there is .td_module_wrap .td-module-meta-info .td-post-views {
position: relative;
display: inline-block;
top: 2px;
margin-left: 14px;
color: #aaa;
}
.td_module_wrap .td-module-meta-info .td-post-views span {
margin-left: 5px;
}
::-moz-selection { /* Code for Firefox */
background: #b001ff;
}
::selection {
background: #b001ff;
}
I also tried to delete all code, doesn’t help. Can u please tell me where I can find and delete the code causing the problem on Starzip.de?
Hi, sorry for the newbie question but I have just installed woocommerce but the woocommerce blocks are not showing as visual composer elements.
Do I need to do anything additional?
Thanks
Hello,
1) The error might be caused by an ad that is not displaying ok. Make sure the ad code you inserted in the sidebar is correct. You have an ad error in your console: http://screencast.com/t/giDQAxaCHo
2)The ajax filter for blocks displays categories, authors or tags (not menus). You can read more about the ajax filter here: https://forum.tagdiv.com/block-settings-tutorial/
3)You can ad a top-bar menu from the theme panel: http://screencast.com/t/mYRV1wCxxHP. You can create your own menu to add to that list from here: http://screencast.com/t/egzD8dlts5
4)You can use our demo to see all theme templates: http://demo.tagdiv.com/newspaper/ Under “Features” you can change appearance and templates for different parts of the website: http://screencast.com/t/X6JmC06R
Thank you!
Hi,
The more article box was not designed to be displayed on mobile device. It is hidden via css – http://screencast.com/t/Gc2fcp1g
If you want to enable it you will have to edit the style.css to remove this code – http://screencast.com/t/UsMckM1mR
Or you can overwrite it using more specific target – http://screencast.com/t/jckIue23X50x just paste this custom css in Theme Panel > Custom Css and it should appear:
.single div.td-more-articles-box {
display: block !important;
}
Thanks!
Yes, managed to changed it.
We need it to look actually like the box quotes. http://demo.tagdiv.com/newsmag/blockquotes-pullquotes/
Small Caps
Left Align
What is the full CSS coding for this.. Thanks.
Hi,
Unfortunately there is not an option to filter by tags ids, you can filter articles only by tag slug name – https://forum.tagdiv.com/block-settings-tutorial/
Thanks!
Hi,
The theme ad system was designed to work with adsense code and other codes may not be displayed. You can add your script in a text block and see if it is displayed, as it may be an issue with your code.
Thanks!
Hi
Try this custom css: http://screencast.com/t/cnwk0F3VYn
.page blockquote p {
font-size: 30px!important;
}
.page .td_quote_box p{
font-size:15px!important
}
Let me know how it goes.
Thanks!
Hello,
I’m sorry but i don’t see any block 14 elements on your site. I see the 4 block 4’s and one block 16: http://screencast.com/t/ftiIM6CC
If you want to use block 14, make sure you select the right one from visual composer.
http://demo.tagdiv.com/newspaper/block-16/
Thank You!
Hi,
@EmbraceDominica I have answered also regarding the theme width(1068px) in that thread as it is not an easy task to change it and you need many customization to change alos the width value for all elements on page.
If you want you can add a background to the row and stretch it, but without the content as the tagdiv blocks were not designed to be used in a row like this – http://screencast.com/t/28YSgIa597wk
Thanks!
Hi,
@shoxa You need to use Thumbnail Upscale plugin only if you use small featured images as they are cropped for different sizes and need to fit into the thumb container on modules. I have checked your site and your images are large enough but they are not cropped to the thumb size(the thumb is not created) – http://screencast.com/t/fv6nXc8bq Try just to regenerate your thumbnails – https://forum.tagdiv.com/using-the-theme-with-existing-content/
If it doesn’t work please check if the GD Library is installed on your side, wordpress requires it for cropping. Also that you have writing permissions on /wp-content/uploads and also check your /uploads folder and see if the thumbs are created.
@asoukhoverkhov There is no ideal size for the feature images but in order to fit the thumb container it should have at least the sizes of thumb’s container, because WordPress doesn’t enlarges images. The modules have thumbs with different aspect ratio and a part of the image may get lost on the cropping process. You could read more about the featured image size here (it’s from Newsmag documentation but the principles are the same) – https://forum.tagdiv.com/image-size/ You have to do some tests and see what aspect ratio to use, depending what blocks/modules you use most.
Thanks!
Hi Alin,
Here is the link to a test page with the block set to show all posts, order latest: http://abakanews.org/test-page/
The post that is set to sticky is the following:
http://abakanews.org/news/armenia-and-artsakh/մայր-աթոռ-սուրբ-էջմիածնի-մէջ-տեղի-ունե-2/
As you can see, it is way down on the list!
Hi Chris, Yes!! Your solution is that i am looking for. Thanks.
I have a little trouble with the image regeneration. Could you help me?.
The sizes that i am using in the index are:
Block 4 = 250 X 160
Block 16 = 218 X 150
Block 1 = 100 X 70 and 324 X 235
Block 7 = 100 X 70
Block 14 = 356 X 220
Then, the first i do is:
1) in the setup MEDIA Thumbnail sizes i put the following:
Small : 100 x 70
Medium: 250 x 160
Big : 356 x 220
2) Then i run the “Regenerate Thumbnail plugin” and i could see this..
Debugging Information
Total Images: 67
Images Resized: 0
Resize Failures: 67
function (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}
And the last line is repeated a lot of times.
The good thing is that when i go to see the index, all images are now with perfect size.
But, finally, i must edit a news, and when i press <Save> appear the “white windows of death”, with this errors:
Warning: imagecreatetruecolor(): Invalid image dimensions in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php on line 2130
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/class-wp-image-editor-gd.php on line 198
Warning: imagecreatetruecolor(): Invalid image dimensions in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php on line 2130
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/class-wp-image-editor-gd.php on line 198
Warning: imagecreatetruecolor(): Invalid image dimensions in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php on line 2130
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/class-wp-image-editor-gd.php on line 198
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php:2130) in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-admin/post.php on line 242
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/media.php:2130) in /Applications/MAMP/htdocs/wordpress-clean-new6.5/wp-includes/pluggable.php on line 1207
The first that i have checked is if the GD library is installed. But YES!.. It is in my phpinfo.!
Searching in google i saw that the thumbnail must be in certain size or the resize isn’t work.
how it work?. How i can setup my own sizes?.
Regards.
can i exclude tags from the block with ID ?