So where and how should I change the css for Block 4 and Block 7?
Basically Block 4 needs an extra 164px and module 7 30px extra.
Thank you.
Hi,
sadly that option didn’t work as intended either. The images for Block 4 was too small and the images for block 7 was too big (overlapping).
I tried another solution from the forum: https://forum.tagdiv.com/topic/thumbnails-square-featured-image-is-not/
I’ve added this to td_config.php:
td_api_thumb::add('sb_324x324',
array(
'name' => 'sb_324x324',
'width' => 324,
'height' => 324,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'normal',
'used_on' => array(
'Module 1, 2', 'Block 2, 3, 4, Big grid 2'
)
)
);
td_api_thumb::add('sb_100x100',
array(
'name' => 'sb_100x100',
'width' => 100,
'height' => 100,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'small',
'used_on' => array(
'Module 6, 7', 'Block 1, 2, 7, 8, 16'
)
)
);
Then changed td_module_2.php:
<?php echo $this->get_image('sb_324x324');?>
This gives me the sizes I want for my thumbs. But the text is still positioned as it’s the old sized thumbnails. Do I need to add some css to push the text down?
Thanks
-
This reply was modified 10 years by
creactivate.
I’ll give it a go 🙂
Do you have a list of all the blocks and their corresponding modules?
Thanks 🙂
-
This reply was modified 10 years by
creactivate.
For the record, the images I need to be square are:
Block 4
Block 7
Related articles
Live Search
Hi,
but wont that make alle the thumbnails the same size always? Ergo not adjust the size responsive?
Here’s my v4 site: http://sagablott.no/
That’s how I want the thumbnails to be like
Here’s my staging site:
http://sagablott.staging.wpengine.com/
Hi Bogdan,
doesn’t seem to work when I change the size for block 7 to 100×100. After I regen the thumbnails they are huge and cover the text.
Cheers bud 🙂
I deactivated all plugins but no change.
http://socialcontent.wpengine.com
This happens in Safari. Seems Chrome is ok.
Cheers, and the button colour? 🙂
Hi Alin,
this didn’t seem to work for me. My subfooter is black, so is my accent color.
Here’s a link to my site if you’d like to check it out: http://somereport.com
Thanks 🙂
Perfect 🙂
hmm…ok
Thanks.
Hi,
I tried to disable all my plugins but no change. And yes, it’s google adsense.
My site: http://phunrise.com/
cheers,
will try it out 🙂
just perfect. Thank you!
@Radu that worked perfectly with the JS 🙂
However after i upgraded to 3.1 today it seems the addthis css file is back in header. Did you change anything? Have I done everything correctly?
It’s just the css from addthis that wont move now.
<link rel='stylesheet' id='output-css' href='http://creactivateno.wpengine.netdna-cdn.com/wp-content/plugins/addthis/css/output.css?ver=3.8.1' type='text/css' media='all' />
Now I realize i’m using a CDN but I’ve purged the cache multiple times so it shouldn’t be the problem.
<?php
/*
Plugin Name: tagDiv speed booster
Plugin URI: http://tagdiv.com
Description: Speed booster for Newspaper theme
Author: tagDiv
Version: 2.1
Author URI: http://tagdiv.com
*/
class td_speed_booster {
var $load_contact_form_7 = '';
var $load_google_fonts = '';
var $styles_for_footer = array();
function __construct() {
add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts_hook'), 100);
add_action('wp_footer', array($this, 'wp_footer_hook'), 15);
add_action('wp_head', array($this, 'wp_head_hook'), 15);
define('TD_SPEED_BOOSTER' , 'v2.0');
}
function enqueue_scripts_hook() {
$this->move_js_to_footer('bitly-js');
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"), true, '1.10.2', true);
wp_enqueue_script('jquery');
}
//move styles
$this->move_style_to_footer('output-css');
$this->move_style_to_footer('bbp-default-bbpress'); //bpress old
$this->move_style_to_footer('bbp-default'); //bpress
$this->move_style_to_footer('contact-form-7');
$this->move_style_to_footer('td-bootstrap');
$this->move_style_to_footer('td-theme');
$this->move_style_to_footer('google-font-rest');
$this->move_style_to_footer('woocommerce_frontend_styles');
//bbpress
//remove_action( 'bbp_head', array($BBP_Default, 'head_scripts') );
}
function wp_footer_hook() {
foreach ($this->styles_for_footer as $style_id => $style_src) {
echo "<link rel='stylesheet' id='" . $style_id . "-css' href='" . $style_src . "' type='text/css' media='all' />\n";
}
}
function wp_head_hook() {
echo '<style>body {visibility:hidden;}</style>';
}
function move_style_to_footer($style_id) {
global $wp_styles;
if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
$this->styles_for_footer[$style_id] = $wp_styles->registered[$style_id]->src;
wp_deregister_style($style_id);
}
}
function move_js_to_footer($js_id) {
global $wp_scripts;
wp_enqueue_script($js_id, ($wp_scripts->registered[$js_id]->src), '', $wp_scripts->registered[$js_id]->ver, true);
}
}
new td_speed_booster();
?>
looks great. But how do i move js? Doesn’t seem to have an ID like css does.
perfect! Thanks 🙂
try #4db2ec
Same here. Sticky menu works responsive on desktop, not on my iPhone.
Need a fix as soon as possible.
do you have a psd file in layers or smart objects?
that’s one more problem solved for me then. Cheers bud 🙂
it certainly is!
It’s strange. On a previous install my menu went boom when i deactivated the slider so i assumed it had something to do with the mobile menu.
So I’ll have to ask, What exactly is it doing? Is it used on the demo site at all?
ok,
so by upgrading to a VPS with the settings you recommend, the warnings for Slider Revolution will magically disappear?
As I mentioned by disabling rev slider i’ll jump to 100/100. But then my menu is no longer working. It seems to be enabled on the demo site and I’ve followed the other advice.
These are the only warnings I get now:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
http://creactivate.no/…punch.plugins.min.js?rev=4.1.4&ver=3.8.1
http://creactivate.no/…ch.revolution.min.js?rev=4.1.4&ver=3.8.1
I have minified CSS and JS
Optimized Images
Using speed booster
Using W3 Cache
