-
AuthorPosts
-
October 11, 2016 at 10:15 am #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 advanceOctober 12, 2016 at 4:03 am #698143Hey 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,
IsmaelOctober 18, 2016 at 2:58 pm #700670Looks 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?October 20, 2016 at 4:54 am #701622Hi!
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,
IsmaelOctober 20, 2016 at 9:32 am #701758Hi 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! ;)October 20, 2016 at 3:53 pm #701941 -
AuthorPosts
- You must be logged in to reply to this topic.