WordPress.org

Ready to get started?Download WordPress

Forums

automatic width="350" when posting image (4 posts)

  1. 2nekked
    Member
    Posted 8 years ago #

    i tried to edit it in tiny_mce.js and quicktags.js but it still wouldnt do it... what im trying to do is make it so everytime i post an image (by clicking the post image button on the post editor) it will automatically set the image to width="350"

    so if i were to click edit html, it should say <img src="blah blah" alt="blah blah" width="350"> and that way i dont have to do it manually everytime i post an image.

  2. Kassad
    Member
    Posted 8 years ago #

    Try along these guidelines or there are many similar threads.

    http://wordpress.org/support/topic/28632?replies=6

  3. 2nekked
    Member
    Posted 8 years ago #

    that didnt help me; and i searched for like an hour and a half before finally posting this

  4. Truth
    Member
    Posted 8 years ago #

    Right. Hmm. this is how I do it, I don't know whether my edit is the same as yours but in quicktags.js

    right at the bottom, look for this line

    function edInsertImage(myField) {

    a few lines down, you should see this

    myValue = '<img src="'

    just change it to

    myValue = '<img width='350' src="'

    and see whether it works :)

Topic Closed

This topic has been closed to new replies.

About this Topic