Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Be|theme demo. We don`t offer theme customization.


Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
3. If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.


IMPORTANT!!! Along with your inquiry, please attach the address of the page which concerns the question. This will cause the time to answer on your question will be much shorter. If you do not want to publish your address publicly in the forum, please send a private message. Thanks!

Image alt tags

Is there any way to make  Image shortcodes to read the ALT attribute from what is defined in the  media library instead of forcing to specify in each shortcode separately? 

Any help is appreciated.

thanks

Comments

  • Please sign in to see answear!
  • does it mean i need to manually add the alt image on the coding only?
  • Please sign in to see answear!
  • hello, will it be possible in the future?
  • Please sign in to see answear!
  • edited October 2017
    I'm pretty sure you understand the question he is asking. And since BeTheme actually has code implemented to accomplish this, I believe you agree that this is something that should be working, it's just that your code is deprecated.

    Here's how to solve this problem:

    You need a child theme (actually I'm not sure if you need one, but it's best practice anyways) in order to overwrite the muffin functions. Then you can simply replace the old function "mfn_get_attachment_id_url" with a working one within your functions.php


    Since there is a restriction on how many characters I can post here, I can't post the entire solution, but I believe its straightforward enough.

    Edit:

    To account for relative image paths add this to the function:

    if (substr($url, 0, 1) === '/') {
    $url = get_site_url() . $url;
    }
  • Setting alt for images in visual Muffin-Builder works fine (there is a line to fill). It also works with shotcode.

    How do I set alt for the main Logo?
      
  • Please sign in to see answear!
Sign In or Register to comment.