Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #697711

    Hi Team Kriesi,
    I try to rebuild this blog style. http://imgur.com/a/mFhUi
    I used Blog Styling Default – Single Post with big preview image –
    the only thing I’m missing is a sidebar where i can place – latest entries – in it.
    When I activate Sidebar for single post – the featured image shrinks down to the content-width, which is not good.
    Can you provide me with some edits for single.php to make this preview happen?
    Thanks in advance

    #698143

    Hey xxtita!

    Thank you for using Enfold.

    Please enable the sidebar then add this in the functions.php file.

    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    		var preview = $('.single .big-preview').detach(),
    			main = $('.single .container_wrap_first');
    
    			$('<div class="container template-single-image"></div>').prependTo(main);
    			$('.single .template-single-image').append(preview);
    	}
    
    	a();
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #700670

    View post on imgur.com

    Looks like its the right way – ;)
    The single image without sidebar is 1215×426
    The new single image with sidebar is downsized to 846×321
    Console says with the container ‘a class=lightbox-added’ it takes a pic downsized to 1030×307.
    Next div ‘img class=attachement-entry_with_sidebar size-entry_with_sidebar …’ takes a pic with width=845, height=321
    and span class=image-overlay has also (of course) style=width:855,height=321.
    Hmmh, maybe its easyier to put in a sidebar into the – ‘no-sidebar business look’, as to enlarge the pic in the ‘included sidebar look’.
    What you think?

    #701622

    Hi!

    You can increase the size of the “entry_with_sidebar” thumbnail. Install the following plugin then go to the Settings > Media panel. https://wordpress.org/plugins/simple-image-sizes/

    Note that the initial modification is partial and might require additional css codes.

    Regards,
    Ismael

    #701758

    Hi Ismael, changed size in functions.php. Works perfect.
    Thanks again for your perfect support. Never ever will i take any other template then enfold from kriesi! ;)

    #701941

    Hi,

    Glad we could help and thanks for your kind words :-)

    Regards,
    Rikard

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