Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1008743
    michaelxxx
    Participant

    Hi,

    I have set my media size for attachments to a max of 1024px.
    When I add an attachment to my post all pictures have the width=”1024″.

    [caption id="attachment_895" align="aligncenter" width="1024"]<a href="http://localhost/wp-content/uploads/2016/05/picture.jpg"><img src="http://localhost/wp-content/uploads/2016/05/picture.jpg" width="1024" height="683" class="size-large wp-image-895" /></a> Image[/caption]

    Now I think about to reduce the max size to 950px.

    This will work for all new attachments I will add to a post.
    But how can I replace the width=”1024″ height=”683″ in the old posts to width=”950″ height=”634″?

    I think you can use css to override the width, but thats not he best way.

    Do I have to go in every post and replace it manually in the code?
    Or do I have to go to my database and use a special update mysql syntax?
    Or is there a plugin for this?

    Maybe you can help me?

    #1008800
    Christian
    Moderator

    Hey there,

    You will need to manually override them. Technically, you can update via the database but that would require custom development which falls outside the scope of our support.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1008743 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>