Now, how do I do it with SG Optimizer?
The issue solves when I deactivate this plugin. But it comes back upon reactivation (as the image gets optimized).
]]>In options for my theme, I add logo and now I can’t find where is option to exclude logo from lazy load? My logo always disappear. Where I can adding data-lazy=”1″ attribute for logo?
]]><div class='selector-image'>
<img src='image.jpg'/>
</div>
with skip class
.selector-image > img
or if i have multiple class with name
selector-image-1,
selector-image-2
i can use
.selector-image-* > img
Need help
]]>I want to exclude my all image of page
https://sites.moho.tw/wp-content/uploads/2019/02/Image-68.png
search this
https://www.google.com.tw/search?q=%E9%9B%86%E5%80%8Bp&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjb892frZ3gAhUEdt4KHVbaALUQ_AUIDigB&biw=1280&bih=626
How could i solve it?
]]>I’m inserting the img URL into the excluded image tab but the Save icon is still appearing when I hover over the image. It is for our logo at the top of each page.
Has anyone got this feature to work? Can someone give the exact format the img URL should be in?
Thank you!
]]>Using WP 3.5.1, TwentyEleven theme. Other possibly relevant plugin used: Simple Gallery
It works OK except that I cannot exclude any images (e.g. header images), despite setting them to be excluded in the Media library, also from the function that sets an image as Featured image (so it becomes header for a given page).
I found a bug in php/wpipp-image-manager.php at line 556:
$results = $wpdb->get_results( $wpdb->prepare( “SELECT ID FROM wp_posts where guid = %s AND post_type = ‘attachment'”, $url_string ) );
It needs to be adjusted to use the prefix I use for the tables, which is not wp_.
This took care of an error being logged for every pageload.
ALso found another bug in the script php/wpipp-install-check-class.php at line 82. It was checking for gd_version_info[“JPG Support”] but in my version of php it is called gd_version_info[“JPEG Support”].
I fixed both bugs and uploaded the scripts.
Still I am unable to exclude images. I don’t know if I should in fact reinstall the plugin so it can detect properly that there is “JPEG Support” because when I installed it that test failed and I opted to override it.
I checked the database, and the postmeta table does show the value 1 for wpipp_exclude_from_watermark for some items, though I am not sure how to interpret that table’s content.
Thanks for any pointers.
https://www.ads-software.com/extend/plugins/wp-image-protect/
]]>I hope this will help who like me was looking for it..
]]><h3>From the Blog</h3>
<?php query_posts(“showposts=1”);
query_posts(‘category_name=General’); global $more; $more=0;?>
<?php while (have_posts()) : the_post(); global $more; $more=0;?>
<h4>” rel=”bookmark” title=”Go to <?php the_title_attribute(); ?>”><?php the_title(); ?></h4>
<div class=”latest-entry”>
<?php the_content(‘Read more…’, $more_link_text, $strip_teaser, $more_file ); ?>
</div>
<p class=”meta”>Written on <?php the_date(); ?></p>
<?php endwhile; ?>
</div><!–/latest-blog–>
Is there anything I can do?
Any bit of help is greatly appreciated.
function catch_first_image() {
02 global $post, $posts;
03 $first_img = ”;
04 ob_start();
05 ob_end_clean();
06 $output = preg_match_all(‘/<img.+src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches);
07 $first_img = $matches [1] [0];
08
09 // no image found display default image instead
10 if(!empty($first_img))
11 {
12 ?>
13
14 <?php
15 echo “<img src='”.get_bloginfo(‘template_url’).”/thumb.php?src=”.$first_img.”&w=92&h=75&zc=1′ alt=” />”;
16 ?>
17
18 <?php
19 }
20 else
21 {
22 // Your default Image
23 echo ‘<img src=”default_image.jpg” alt=””/> ‘;
24 }
25 }