Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #399679

    Is there any way to still have an image blog post and make it so the image can not be rolled over and opened with the circle and arrows on the main blog page?

    I set my blog images as a feature image on a blog post and select format “image”. when you look at the image in a post, you can roll over it and click on it and it opens in a pop up on the main blog page. Similar to a gallery. It does not on individual posts.

    Any way to stop this?

    #399873

    Hi fgrippe!

    Add this to your custom CSS.

    .single .big-preview { display: none !important; }
    

    That will hide the featured image on your single post view only so you can insert your own into the post content if you wish.

    If that’s not what your trying to do then send us a link and take a screenshot highlighting your intentions.

    Best regards,
    Elliott

    • This reply was modified 9 years, 9 months ago by Elliott.
    #402104

    Thx but that is not it.

    I would like to disable the “lightbox” function on blog posts with images. When you roll over an image when you make an “image” blog post, a circle appears with arrows. That enables you to click, and the image moves forward and appears like a gallery while the whole of the page dims.

    I simply want to give a post a feature image (or let me know if there is another better way) that you can not click on in any way.

    Does that make sense?

    #402494

    Hi!

    Try to add this to your functions.php

    function rkv_imagelink_setup() {
    	$image_set = get_option( 'image_default_link_type' );
    	
    	if ($image_set !== 'none') {
    		update_option('image_default_link_type', 'none');
    	}
    }
    add_action('admin_init', 'rkv_imagelink_setup', 10);

    Cheers!
    Rikard

    #609651

    Sorry, it has been a while, but see the travel demo, first post. Shouldn’t this be a little more simple?

    When you click on the image, it takes you to the full post. I can’t get that to work correctly.

    • This reply was modified 8 years, 7 months ago by fgrippe.
    #609657

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .single .big-preview.single-big {
        pointer-events: none!important;
    }

    Best regards,
    Yigit

    #609673

    doesn’t work.

    If you hit READ MORE or the HEADLINE it goes to the full post. If you hit the image, it just opens up the image in new window by itself???

    This is happening on all the sites where I use this theme and make an image post.

    • This reply was modified 8 years, 7 months ago by fgrippe. Reason: wanted to add url
    #609679

    Hi!

    Please change the code to following one

     .big-preview.single-big {
        pointer-events: none!important;
    }

    Best regards,
    Yigit

    #609683

    I did. It is there. Does not work.

    In past versions, if you clicked the image, or any of the text, you would be taken to the full blog post?

    • This reply was modified 8 years, 7 months ago by fgrippe. Reason: more comments
    #609686

    Hey!

    Can you please flush browser cache and refresh your page a few times? It is not clickable any more on my end

    Cheers!
    Yigit

    #609691

    Sorry for the confusion, but let me clarify. This is not exactly what I am trying to accomplish.

    I am trying to get anything that you click from the main blog page, to take you to the whole blog post. That is the way the theme used to function. ?

    So if you make a post, you can click the image, the headline, or the read more button to take you to the full post.

    • This reply was modified 8 years, 7 months ago by fgrippe. Reason: more comments
    #609695

    if this is the easiest fix, then maybe i should just stick with it…thx.

    #609714

    Sorry about this but i can find no other way…

    I just bough extended support through theme forest on this theme. I have purchased the theme almost 10 times. I can’t seem to start any topics though. Who can i talk to about this? I would like to get one username and login for support once and for all. Can you help with this?

    • This reply was modified 8 years, 7 months ago by fgrippe. Reason: clarity
    #610953

    Hey!

    Sorry for the delay. Please remove all modifications above then add this in the functions.php file to override the post format image filter:

    
    function avia_image_slideshow_filter($current_post)
    {
    
        $prepend_image = get_the_post_thumbnail(get_the_ID(), 'large');
        $image = "";
    
        if(!$prepend_image)
        {
            $image		= avia_regex($current_post['content'],'image');
            if(is_array($image))
            {
                $image = $image[0];
                $prepend_image = '<div class="avia-post-format-image"><img src="'.$image.'" alt="" title ="" /></div>';
            }
            else
            {
                $image		= avia_regex($current_post['content'],'<img />',"");
                if(is_array($image))
                {
                    $prepend_image = '<div class="avia-post-format-image">'.$image[0]."</div>";
                }
            }
        }
        else
        {
    
            $large_image = get_the_permalink();
            $prepend_image = '<div class="avia-post-format-image"><a href="'.$large_image.'">'.$prepend_image."</a></div>";
        }
    
            if(!empty($prepend_image) && is_string($prepend_image))
            {
                if($image) $current_post['content'] = str_replace($image, "", $current_post['content']);
                $current_post['before_content'] = $prepend_image;
                $current_post['slider']  = "";
            }
    
        if(is_single(get_the_ID()) && get_post_meta( $current_post['the_id'], '_avia_hide_featured_image', true ) ) $current_post['before_content'] = "";
    
        return avia_default_title_filter($current_post);
    }

    Regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.