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

    Hi
    i need to know where in my php i can define the size for an post-image used in my blog-single.
    I need to change it from the standard 180x180px you used to 300x300px.

    regards axel

    #191919

    Hey kaMai!

    In WordPress dashboard please go to Appearance > Editor and open Functions.php file and find

    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs

    and adjust as desired

    Cheers!
    Yigit

    #192043

    You really suggest to edit the functions.php of a parent-theme ??

    #192053

    Hi!

    You can change the sizes using custom CSS as well but then your images would be blurry. Then you can regenerate them using http://wordpress.org/plugins/regenerate-thumbnails/

    Cheers!
    Yigit

    #192056

    I do not talk about scaling images by HTML /CSS!!
    I know how to regenerate!

    My question wass:”Where in your PHP do i change the size of the images for blogposts (single-view) so that the images in archive / index are not influenced?”
    Maybe you have alook here:
    https://kriesi.at/support/topic/blog-views-why-so-complicate/

    • This reply was modified 11 years, 1 month ago by kaMai.
    #192152

    Hi!

    I am trying to help you here and really do not understand why are you getting angry with me. These are the steps you should follow in order to change the size from 180x180px to 300x300px
    1) Please make the changes i posted in my first post ( https://kriesi.at/support/topic/define-image-size-for-blogposts/#post-191919 )
    2) You said you know how to regenerate, but in case you have not tried, you can try this plugin i posted in my second post ( https://kriesi.at/support/topic/define-image-size-for-blogposts/#post-192053 )
    3) Then you can add following code to Quick CSS in Enfold theme options under Styling tab

    #top.single-post .fullsize .single-small.with-slider .blog-meta { width: 300px; }
    .single-post .single-small.with-slider .small-preview { width: 300px; height: 300px; }

    And that is it, your image size should be 300x300px :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Define image size for blogposts’ is closed to new replies.