• Resolved broomy

    (@broomy)


    I’ve got some functions which display data with links like this:

    echo __(‘<img src=”‘.get_settings(‘siteurl’).’/wp-content/plugins/report_posts/flag_red.png” style=”margin-right:10px” alt=”Flag this post” />’) . ”;

    How can I remove the border that appears around the images; i’ve tried adding border=”0″ but no luck.

    Thanks for any help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you tried changing the stylesheet / css?

    Thread Starter broomy

    (@broomy)

    Hi podz, what would I need to look for as i’m not sure what would control the border of a linked image.

    Thanks for your help.

    If that works (from your post):
    echo __('<img src="'.get_settings('siteurl').'/wp-content/plugins/report_posts/flag_red.png" style="margin-right:10px" alt="Flag this post" />') . '';

    Then this should show it without borders:
    echo __('<img src="'.get_settings('siteurl').'/wp-content/plugins/report_posts/flag_red.png" style="margin-right:10px;border:none;" alt="Flag this post" />') . '';

    But Podz is right, you should try to keep styles in the stylesheet ;’)

    Thread Starter broomy

    (@broomy)

    So would something like this be the best option:

    echo __(‘<img src=”‘.get_settings(‘siteurl’).’/wp-content/plugins/report_posts/flag_red.png” class=”postoptions” alt=”Flag this post” />’)

    With the css like this:

    .postoptions {
    margin-right:10px;
    border:none;
    }

    Probably a basic question, but then I really am basic at css!

    Thanks for your help.

    Yes, that looks good…

    Thread Starter broomy

    (@broomy)

    Ah good, thanks for your help Yosemite and podz 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing border in functions’ is closed to new replies.