- NewspaperFlex Block Builder and Flex Loop Builder
- NewspaperHow to use the Flex Blocks cache option
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to insert a block inside the content of a post
- NewspaperFlex Block Settings Guide
- NewspaperMeta Info on Modules and Blocks
- NewspaperTheme modules and blocks
- TutorialsDefault Block Settings Guide
- NewsmagBlock settings tutorial
- NewsmagCategory tag on modules/blocks
- NewspaperThumbnails – Fix strange looking images on blocks
- NewspaperBlock settings tutorial
- NewspaperCategory Tag on Modules/blocks
- ApiPractical example – How to add a new Block and Module
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
Here is another awesome plugin that every one should have install it’s called “Query Strings Remover” i’m using it as well and it works great.
What this plugin do is remove the query strings from your static resources like CSS and JavaScript files to help improve your cache performance and overall score in Google PageSpeed, YSlow, Pingdom and GTmetrix.
The plugin name is “Query Strings Remover” by the author Atul Kumar Pandey
You can download this plugin via the wordpress website @ this url
To not break any slide are the menu on mobile please add these files in the
Exceptions (files to ignore and load in render-blocking way) box to the bottom
jquery.min.js
external.min.js
site.min.js
js_composer_front.js
these files can’t be loaded in render-blocking are the sliders on ur site will not work also the mobile slide menu..
Well, we’be been looking at it now and we’re confused.
We don’t need the cropping – it’s okay to resize, but not crop, as we particularly upload a 1280x720p image with borders etc.
Is it possible for us to let the template ONLY resize the width according to the pixels that fit and then let the image have the height in what ever fits the aspect ratio and with no cropping?
Can you sticky my topic please so i can keep adding more tips
Good tips – I’ll try these out once I’m back up to speed 🙂
I just want to share with most of those people that stress over the google pagespeed score and the issue they having with the “render-blocking CSS and JS files” i’m using a awesome plugin that stop this issue and i’ll like to recommend this plugin because it works great and stop that issue with render-blocking CSS and JS files.
The plugin name is “Async JS and CSS” by the author elCHAVALdelaWEB
You can download this plugin via the wordpress website @ this url
http://wordpress.org/plugins/async-js-and-css/
Also i have another awesome plugin i used as well that removed “Leverage browser caching”
You can find that plugin also via wordpress website @ the url http://wordpress.org/plugins/leverage-browser-caching-ninjas/
I’m just trying to past on my tips that works great for my self and make my site fast etc..i have more but not sure if every one will want to hear about them…:)
@Lukao350
Hi, it’s almost impossible to fully remove all render blocking — most websites need to have some CSS load before the page … otherwise you get a flash of unstyled text – where page starts to load but is messed up, then the CSS loads and corrects – ugly.
So, with full optimization, you typically you will end up with one main CSS file, and one main JS file, as well as the other render blocking stuff will be external files (e.g., fonts from Google) that don’t load in “async” mode. The TagDiv Speed Booster plugin helps a bit – have you tried that yet ?
I’m the problem “Eliminate render-blocking javascript and css in above-the-fold content”. I do not know what else to do, would have any tips for that?
For those who want to see: http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.techtube.com.br&tab=mobile.
Sorry for my english.
Okay I should’ve known not to include 2 questions.
My question is; why won’t my comment box show back up?
This is my comments.php
<?php
//removing the comments sidewide
if(td_util::get_option(‘tds_disable_comments_sidewide’) == ”) {?>
<div class=”comments” id=”comments”>
<?php if (post_password_required()) { ?>
<?php } else { ?>
<?php if (comments_open() ) { ?>
<div class=”comments-title-wrap”>
<?php
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value
if ( $num_comments == 0 ) {
$td_comments_no_text = __td(‘NO COMMENTS’);
} elseif ( $num_comments > 1 ) {
$td_comments_no_text = $num_comments . ‘ ‘ . __td(‘COMMENTS’);
} else {
$td_comments_no_text = __td(‘1 COMMENT’);
}
?>
<h4 class=”block-title”><span><?php echo $td_comments_no_text?></span></h4>
</div>
<?php if (have_comments()) { ?>
-
<?php wp_list_comments( array( ‘callback’ => ‘td_comment’ ) ); ?>
<div class=”comment-pagination”>
<?php paginate_comments_links(); ?>
</div>
<?php } ?>
<?php } ?>
<?php
$commenter = wp_get_current_commenter();
if (empty($aria_req)) {
$aria_req = ”;
}
$fields = array(
‘author’ =>
‘<p class=”comment-form-input-wrap”>
<span class=”comment-req-wrap needsclick”><input class=”” id=”author” name=”author” placeholder=”‘ . __td(‘Name:’, TD_THEME_NAME) . ‘” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) . ‘” size=”30″‘ . $aria_req . ‘ />’ . ( $req ? ‘</span>’ : ” ) .
‘</p>’,
’email’ =>
‘<p class=”comment-form-input-wrap”>
<span class=”comment-req-wrap needsclick”><input class=”” id=”email” name=”email” placeholder=”‘ . __td(‘Email:’, TD_THEME_NAME) . ‘” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_email’] ) . ‘” size=”30″‘ . $aria_req . ‘ />’ . ( $req ? ‘</span>’ : ” ) .
‘</p>’,
‘url’ =>
‘<p class=”comment-form-input-wrap needsclick”>
<input class=”” id=”url” name=”url” placeholder=”‘ . __td(‘Website:’, TD_THEME_NAME) . ‘” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_url’] ) . ‘” size=”30″ />’ .
‘</p>’,
);
$defaults = array(
‘fields’ => apply_filters(‘comment_form_default_fields’, $fields ),
);
$defaults[‘comment_field’] = ‘<div class=”clearfix”></div><p class=”comment-form-input-wrap”><textarea class=”needsclick” placeholder=”‘ . __td(‘Comment:’, TD_THEME_NAME) . ‘” id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’;
$defaults[‘comment_notes_before’] = ”;
$defaults[‘comment_notes_after’] = ”;
$defaults[‘title_reply’] = __td(‘Leave a Reply’);
$defaults[‘label_submit’] = __td(‘Post Comment’);
$defaults[‘cancel_reply_link’] = __td(‘Cancel reply’);
comment_form($defaults);
//comment_form();
?>
<?php } ?>
</div> <!– /.content –>
<?php
}//end removing the comments sidewide
/**
* Custom callback for outputting comments
*
* @return void
* @author tagdiv
*/
function td_comment( $comment, $args, $depth ) {
$GLOBALS[‘comment’] = $comment;
$td_isPingTrackbackClass = ”;
if($comment->comment_type == ‘pingback’) {
$td_isPingTrackbackClass = ‘pingback’;
}
if($comment->comment_type == ‘trackback’) {
$td_isPingTrackbackClass = ‘trackback’;
}
if (!empty($comment->comment_author_email)) {
$td_comment_auth_email = $comment->comment_author_email;
} else {
$td_comment_auth_email = ”;
}
$td_article_date_unix = @strtotime(“{$comment->comment_date_gmt} GMT”);
//print_r($td_article_date_unix);
?>
<?php if ( $comment->comment_approved == ‘1’ ) { ?>
<li class=”comment <?php echo $td_isPingTrackbackClass ?>” id=”li-comment-<?php comment_ID() ?>”>
<article>
<footer>
<?php
//echo get_template_directory_uri() . “/images/avatar.jpg”;
//echo get_avatar($td_comment_auth_email, 50, get_template_directory_uri() . “/images/avatar.jpg”);
echo get_avatar($td_comment_auth_email, 50); ?>
<cite><?php comment_author_link() ?></cite>
</footer>
<div class=”comment-content”>
<?php comment_text() ?>
</div>
<div class=”comment-meta” id=”comment-<?php comment_ID() ?>”>
<?php comment_reply_link(array_merge( $args, array(
‘depth’ => $depth,
‘max_depth’ => $args[‘max_depth’],
‘reply_text’ => __td(‘Reply’, TD_THEME_NAME),
‘login_text’ => __td(‘Log in to leave a comment’, TD_THEME_NAME)
)))
?>
</div>
</article>
<?php
}
}
?>
Hi,
The theme doesn’t have build in a features like that and need custom modifications, but if you want you can try to modify it yourself. You need to modify here: http://screencast.com/t/eNtRCWCNjSEq
Add a condition on the title so if it’s homepage it displays h1 and on the rest it displays h2:
if i(s_home()) {
<h1>Title</h1>
}
else {
<h2>Title</h2>
}
If you don’t know how to modify this we recommend to hire a developer.
Thank you
Hi MiriamNZ,
Always good to have a supporter 🙂
Also took me (more than) an hour to find out it is by default inpossible with the current version of the theme to display posts using the AND operator 🙁
Instead of suggesting to mention this in the documentation, I suggest the developers simply put this relatively simple feature in the next new version of the theme!
I am really quite surprised that nobody noticed the lack of this feature before and the developers haven’t put it in there. Now is the time! People are starting to ask for it.
Your great suggestion Miriam of using category AND tag only works if you have tagged your posts accordingly. Unfortunately I have not, so can’t use your elegant method. Maybe I will retag, will think about it.
Radu from TagDiv: can you update me on the chance of this AND feature will be implemented in the next version?
Thanks all!
-
This reply was modified 12 years by
OuweAap.
Hi
How do I setup additional block title styles?
I would like to have different size font on different titles, so say h1 on my main page block and say h3 on a slightly less important block and h4 on the least important page block.
Estou com o problema “eliminate render-blocking javascript and css in above-the-fold content”. Não sei mais o que fazer, teria alguma dica para isso?
Pra quem quiser ver: http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.techtube.com.br&tab=mobile.
Desculpe pelo meu inglês.
Looks like you can use the existing setup to choose a category AND a tag.
If my category is “May issue” and my tag is “people” then only those items that exist in the May issue category with a tag of people will show.
Effectively an AND filter.
I am voting with OuweAap, I want to show posts that are in both categories, for example the “May Issue” of the newspaper (which is a category), and the “life” category.
It took me an hour to work out that the filter is an OR not an AND combinator.
Suggest you add this to your documentation, maybe here:
https://forum.tagdiv.com/modules-and-blocks/
START
Category filters
To show items from more than one category add them here. (This is an OR filter).
No AND filter is available to show items that appear in more than one category.
Cheers
Miriam
Emil, thank you.
I need to load the author avatar if there is no featured image for the post, and list it everywhere in the site. See what I have so far inside functions.php:
/* == Place the Avatar as Featured Image == */
add_filter( ‘get_image’, ‘my_avatar_image’ );
function my_avatar_image( $image ) {
return get_avatar( get_the_author_meta( ’email’ ) );
}”
What I am doing wrong?
Regards,
-
This reply was modified 12 years by
rbaccaro.
Hi,
Do you want it to display everywhere (on modules/blocks and posts) of just inside the post page?
For the single post you can replace the following line to display the author avatar:
– http://screencast.com/t/2uoydxw1
– http://screencast.com/t/OjvjJvp8aW
$author_id = get_the_author_meta('ID');
echo get_avatar($author_id, 206);
If you want to display it everywhere you will have to modify the get_image function in td_module_blog.php ( http://screencast.com/t/tat6djPjK ) if you don’t know how to do that you will have to hire a professional developer.
Thank you
-
This reply was modified 12 years by
Emil G.
Hi,
Please send an email at contact@tagdiv.com and I will send you a tutorial on how to make a custom block/module.
Thank you.
Hi,
We use 1074×483 px images – https://forum.tagdiv.com/topic/featured-image-cropped/
The thumbs sizes are defined inside the functions.php file: http://screencast.com/t/NxiuYIwql9h
You can also read here about the sizes used by the theme (chapter 3): https://forum.tagdiv.com/modules-and-blocks/
Thank you.
Hi!
I want to make changes to the Block 3. I want to make the featured image a bit bigger (1074×768 or the default size). I also want to add excerpt of the post after the title.
Please tell me how can I do that. Thanks!
Hi,
Please send an email at contact@tagdiv.com and I will send you a tutorial on how to make a new block.
Thank you.
Thank you 🙂
Hi,
The thumbs sizes are defined inside the functions.php file – http://screencast.com/t/NxiuYIwql9h
Also you can read here about the thumbs sizes (chapter 3) – https://forum.tagdiv.com/modules-and-blocks/
Thank you, Emil G.
is it possible?
Hi!
As we’re running a tv-channel, all our images are HD (1.280 x 720p) and we see a lot of cropping going on in the different blocks.
Is it possible for us to change something so that the thumbnails of the blocks are not cropped, but resized ? If so, can we even do it without this change breaking every time you release an update for the template?