- 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
Hi,
1. Do you need to change the font and size only on post with that CSS becouse the content font, size and line-height can be changed directly from Theme panel -> Custom Typography
http://screencast.com/t/BJPDjNBeRMeW
Also if you need only ok post use your CSS but on that large font you need a higher line-height value. Try with line-height: 28px
2. In v3 the post file is loop-single.php http://screencast.com/t/OjJNnEQ4G
3. Add a RAW HTML above the slider with this:
<h4 class="block-title">
<span>YOUR TITLE HERE</span>
</h4>
4. Via CSS, add this CSS on the logo selector border-bottom: 4px solid #4DB2EC; with your color. If you don’t manage it only if you give me your site URL to inspect it and i will give you the right CSS.
5. Give me your URL to see it, can be done via CSS
6. Same here
Thanks!
Hi,
You can’t use Featured sort and get events, because if you set a Slide/Block to filter by Featured this mean all from Featuredcategory and you CPT event can’t be in that categories only posts.
Thanks!
I have one doubt…if i put this in .htcaccess:
AddType text/javascript .js
<IfModule mod_rewrite.c>
ExpiresActive On
# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# Media: images, video, audio
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# CSS and JavaScript
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
# Webfonts
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
</IfModule>
¿Do I need to put this code too?
# END WordPress
AddType text/javascript .js
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>
I think i resolved all issues in PageSpeed test about “Remove the blocking JavaScript and CSS display the contents of the upper half of the page” but yet appears this
http://ambito-financiero.com/…s/contact-form-7/includes/css/styles.css
http://s7.addthis.com/static/r07/widget119.css
http://ambito-financiero.com/…ster/external/bootstrap/td-bootstrap.css
http://ambito-financiero.com/wp-content/themes/Newspaper/style.css
Less addthis the another things are the theme css files
-
This reply was modified 12 years by
tracid.
Hi, I can not find the option to decide how many rows of the summary to show on the home page (eg 3/4/5 lines of text as text article in the demo), if in addition to the “…” you could insert a “read more” would be perfect:
http://www.screencast.com/t/aXkqCNcjXTC
ps.
it may be useful as information on the homepage using the block 8
thanks!!!
Hi there,
I managed with your help to pull my cpt events into your blocks. Now I try alongside events to pull my normal wp posts as well into the same block (events next to wp posts)
Under Post Type in block edit (Big Slider) it says:
“Usage: post OR post,events,pages ; write 1 or more post types delimited by comas”
It actualy doesn’t work when I try “post,event”
For explanation: I assign a wp category (in this case “Featured”) to my cpt events ( I extended the admin with wp categories alongside event categories).
Any thoughts?
Cheers
Hi
only use the mod_pagespeed stuff if your web hosting provider has Google mod_pagespeed installed – ask them about that, and what functions they support. Don’t use that if your host doesn’t have it installed.
And i should put this code in the final of function.php?
add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );
YES! 🙂
——————
Hi, here is my current optimized site .htaccess
NOT including mod_pagespeed (may not apply to you)
NOT including my redirects
NOT including my permalink structure
SO, assuming end of the # wordpress stuff
# END WordPress
AddType text/javascript .js
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 700000 seconds"
ExpiresByType text/javascript "access plus 700000 seconds"
ExpiresByType application/javascript "access plus 700000 seconds"
ExpiresByType application/x-javascript "access plus 700000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</IfModule>
# END Cache-Control Headers
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 /xmlrpc.php
</IfModule>
Hi,
I am trying to create a index of all posts listed under a specific category. Of course there are a lot of good working pplugins for that. But maybe you can think about adding such function to your “Sort Order” Option for Blocks. That would be really great!
Cheers,
Norman
Thanks Marius, works like a charm !!
Hello,
So far I am loving this theme. It looks great! One thing I am trying to do though is to show 2 posts and 2 pages in the big slider. The big slider will be a static set of 4 ‘welcome’ blocks, 2 will go to posts explaining about the site, other 2 need to point to the forum and article pages.
I see that in Big Slider configuration we can set post type to include pages but how can this be filtered?
Ideally, I could just set post and page ids of what I would like to show.
Thank you in advance for your help.
Hi,
Add it with page builder, switch to classic editor and copy the short-code from there. This is available for all things from Page builder including blocks, sliders, etc.
http://screencast.com/t/HLKr2gdlb
this is the shortcode
http://screencast.com/t/jUvnbY4ETJi
Thanks!
Hi,
Great! I’m glad that you have managed.
The mobile score is better ;). But in the screenshots appears empty the mobile screen :S
In w3 total cache i only check the Page Cache in the general settings tab or i need make more changes in the other tabs?
The option of Minify should be enable?
I use http://cssminifier.com/ for my style.css and works but i realized another pagespeed test ando mobile score was 59.
The results in mobile test:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 5 blocking script resources and 8 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
Remove render-blocking JavaScript:
http://ajax.googleapis.com/…s/jquery/1.10.2/jquery.min.js?ver=1.10.2
http://ambito-financiero.com/…ns/jetpack/_inc/postmessage.js?ver=2.9.1
http://ambito-financiero.com/…/jetpack/_inc/jquery.inview.js?ver=2.9.1
http://ambito-financiero.com/…/_inc/jquery.jetpack-resize.js?ver=2.9.1
http://s7.addthis.com/js/300/addthis_widget.js
Optimize CSS Delivery of the following:
http://ambito-financiero.com/…etpack/modules/likes/style.css?ver=2.9.1
http://ambito-financiero.com/…ubscriptions/subscriptions.css?ver=3.8.1
http://ambito-financiero.com/…modules/widgets/widgets.css?ver=20121003
http://ambito-financiero.com/…modules/sharedaddy/sharing.css?ver=2.9.1
http://ambito-financiero.com/…dgets/widget-grid-and-list.css?ver=3.8.1
http://ambito-financiero.com/…s/contact-form-7/includes/css/styles.css
http://ambito-financiero.com/…ster/external/bootstrap/td-bootstrap.css
http://ambito-financiero.com/wp-content/themes/Newspaper/style.css
Prioritize visible content
Your page requires additional network round trips to render the above-the-fold content. For best performance, reduce the amount of HTML needed to render above-the-fold content.
55.9KiB of the response was required to render the above-the-fold content. Prioritize visible content that is needed for rendering above-the-fold.
The results in desktop test:
Compressing resources with gzip or deflate can reduce the number of bytes sent over the network.
Enable compression for the following resources to reduce their transfer size by 173.8KiB (74% reduction).
Compressing http://ambito-financiero.com/ could save 46.2KiB (81% reduction).
Compressing http://ambito-financiero.com/…ster/external/bootstrap/td-bootstrap.css could save 27.8KiB (80% reduction).
Compressing http://ambito-financiero.com/…Newspaper/js/min/external.min.js?ver=3.4 could save 25.5KiB (65% reduction).
Compressing http://ambito-financiero.com/…mes/Newspaper/js/min/site.min.js?ver=3.4 could save 14.7KiB (74% reduction).
Compressing http://ambito-financiero.com/…ns/jetpack/_inc/postmessage.js?ver=2.9.1 could save 14.3KiB (74% reduction).
Compressing http://ambito-financiero.com/…jquery.form.min.js?ver=3.50.0-2014.02.05 could save 9.9KiB (62% reduction).
Compressing http://ambito-financiero.com/…modules/sharedaddy/sharing.css?ver=2.9.1 could save 8.9KiB (80% reduction).
Compressing http://ambito-financiero.com/…assets/js/js_composer_front.js?ver=3.6.8 could save 6.6KiB (68% reduction).
Compressing http://ambito-financiero.com/…-form-7/includes/js/scripts.js?ver=3.7.2 could save 6.2KiB (71% reduction).
Compressing http://ambito-financiero.com/…/_inc/jquery.jetpack-resize.js?ver=2.9.1 could save 5.7KiB (72% reduction).
Compressing http://ambito-financiero.com/…/jetpack/_inc/jquery.inview.js?ver=2.9.1 could save 3.5KiB (64% reduction).
Compressing http://ambito-financiero.com/…etpack/modules/likes/style.css?ver=2.9.1 could save 2.9KiB (70% reduction).
Compressing http://ambito-financiero.com/…dgets/widget-grid-and-list.css?ver=3.8.1 could save 1.1KiB (66% reduction).
Compressing http://ambito-financiero.com/…s/contact-form-7/includes/css/styles.css could save 524B (56% reduction).
What can i do to improve this? The thing that appear in the list are of jetpack pluging, contact-form, and things of the theme. The screenshots in mobile test only show the menu with any format, and in the desktop text the screen was empty.
I compare the source code of the theme demo with the souce code of my page and its too different. :S. I think this theme is too complicated to config correctly to improve the speed. Its necessary a guide to config the plugins like the theme demo, with the same options, then each user could comment your personal issues. If in the demo has been changed .htaccess for improve the speed and changed a w3 total cache, i think its necessary a guide because the speed of theme is one of best things that it have. If you make a bad config of this items, the theme is slowly like another themes.
Another question, i update the theme with the patch folder, is better reinstall all theme or is the same? I tell this because one of the updates was “clean code” and in my <head> there are a lot of code, more than in the theme demo and another pages that the people put here in the other posts :S
PD sorry for the english 🙂
Thanks again, Marius!
I would love it if there was an optional section in the Text with title block that could be use to link the title. I often use the text with title block for adding sponsors to a specific post. It would be great if I could also link the title to the sponsor as well.
Thanks! Was able to get it working with the following code.
case 'event':
$wp_query_args['meta_key'] = '_expiration-date';
$wp_query_args['orderby'] = 'meta_value';
$wp_query_args['order'] = 'ASC';
break;
I made test in pagespeed and the score of mobile version its poor. the tool shows this problems. ¿How can i fix this problems?
Remove render-blocking JavaScript: httpx://www.google.com/jsapi?ver=3.8.1
Optimize CSS Delivery of the following: httx://fonts.googleapis.com/…tnamese%2Clatin-ext%2Ccyrillic&ver=3.8.1 httx://fonts.googleapis.com/…2Cgreek%2Clatin-ext%2Ccyrillic&ver=3.8.1 httx://fonts.googleapis.com/…lic-ext%2Clatin-ext%2Ccyrillic&ver=3.8.1 httx://fonts.googleapis.com/…2C700&subset=latin%2Clatin-ext&ver=3.8.1 httx://fonts.googleapis.com/…tnamese%2Clatin-ext%2Ccyrillic&ver=3.8.1
Prioritize visible content Your page requires additional network round trips to render the above-the-fold content. For best performance, reduce the amount of HTML needed to render above-the-fold content.
In the screenshot of the tool, the menu is displayed before content. This is very important for SEO. http://googlewebmastercentral.blogspot.com.es/2012/01/page-layout-algorithm-improvement.html
Hi,
Use this CSS
/* responsive phone */
@media (max-width: 767px) {
.td-big-slide-background .td_block_slide_big {
padding-bottom: 0px;
}
.td-big-slide-background
.td-grid-wrap {
padding-top: 10px
}
.backstretch {
height: 150px;
}
}
Thanks!
Hi,
In td_generic_filter_array.php you define a new sorting option, then for that option you have to add that code in td_data_source.php for your case http://screencast.com/t/gZqc7Mfe
Hope this help!
Hi,
Paste this code:
<script language="JavaScript">
function bloquear(e){return false}
function desbloquear(){return true}
document.onselectstart=new Function ("return false")
if (window.sidebar){document.onmousedown=bloquear
document.onclick=desbloquear}
</script>
like here: http://screencast.com/t/yuAwD8MD4iy
Thanks!
Hi, I’m just switching to v3 from v2 finally, but in the earlier version you could just specify one of the default modules for those pages, which would have the excerpt.
E.g., module 8 or module 9
Modules and Blocks
https://forum.tagdiv.com/modules-and-blocks/
Posted on October 24, 2013 by Daniela
1. Modules
This modules layouts can be used on:
◾Latest article using a Homepage with article list
◾Category page
◾Blog index
◾Archive page
◾Attachment page
◾Author page
◾Tag page
◾Search page
◾404 page
Marius, I am using the simple plugin Post Expirator [https://wordpress.org/plugins/post-expirator]
How could I use this script to sort by post expiring showing First?
I added the line
'Event Expiring' => 'event',
To the td_generic_filter_array.php file
Hi,
tags should have worked, I’ve tested the filter and it works as expected. It may be that you either have a lot of content or the database configuration is not good.
This is the function that renders our loops on the templates http://screencast.com/t/flqgW87f . The functions above that is used by the blocks.
Sorry for the delay,
Radu O.
Hi guys,
I’m having a big problem with blood suckers. To prevent copies of texts from my website, i’m thinking in install the following script:
<script language=’JavaScript’>
function bloquear(e){return false}
function desbloquear(){return true}
document.onselectstart=new Function ("return false")
if (window.sidebar){document.onmousedown=bloquear
document.onclick=desbloquear}
</script>
(If you know another script blocker more simple than that, please let me know).
The forum where I found the plugin asks for the code to be inserted before </head>. Do I need to paste it in all php files or only in style.css?
Hi,
For the menu you can use any image/icons you want instead of what you use for socials. To make something responsive with % is a little tricky.
Please disable unique articles feature, for you homepage is not necessary, because you don’t have other content blocks, is useful only for magazine style layouts with lot of blocks content.
Thanks for your message!