Title: Blocks Widget deletes HTML attributes
Last modified: September 1, 2016

---

# Blocks Widget deletes HTML attributes

 *  Resolved [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/)
 * Hello,
    unfortunately, your “Blocks Widget” deletes a wide array of html attributes
   when saving/posting code.
 * As this attributes are not deleted in standard wp widgets, I assume that you 
   have an additional filter installed!?
 * data-height=””
    data-chrome=”” data-dnt=”” async=””
 * It would be grat if you could allow these attributes or provide a workaround.
 * Thx so much!

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648059)
 * Sorry, for security purpose WordPress doesn’t allow all sorts of html by default.
   You can try with pasting the code in a “Text Widget” that comes with WordPress.
 * Thanks
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648073)
 * Thank you for your reply.
 * In that case, could you please provide me with the CSS workaround that allows
   me to put three text widgets next to each other in the frontpage widget area?
 * that’d be great!
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648083)
 * …just to avoid misunderstandings:
 * I would like to have three _text widgets_ next to each other, underneath the 
   full-width _about widget_.
 * Thank you so much for your support.
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648172)
 * Hi,
 * Its not possible to add more than 4 widgets on frontpage in the Free version.
   So I suggest you install a column shortcode plugin like this:
    [https://wordpress.org/plugins/column-shortcodes/](https://wordpress.org/plugins/column-shortcodes/)
 * and insert the 3/3 layout columns inside an Advanced Text widget.
 * Thanks
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648177)
 * Hi,
    again, thank you so much for your very kind and prompt support. This is 
   very much appreciated!
 * For clarification: I don’t want to put more than 4 widgets on the frontpage; 
   just the about widget plus 3 text widgets. So, if that can be easily arranged(
   e.g. via CSS), please let me know.
 * Again, thank you so much & kind regards!
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648196)
 * Hi,
 * In that case, add the text widgets and let us know your site address so we can
   provide a custom css.
 * Thanks
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648197)
 * Hi,
    oh, that’s really great.
 * I did as you said. An the website is this: [https://mstrautmann.de/ms/](https://mstrautmann.de/ms/)
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648198)
 * Try adding this custom css:
 * `.frontpage_sidebar .widget_text {width: 33.3%;padding: 5%;box-sizing: border-
   box; color: #666; text-align: center;}`
 * However You can achieve a better look with the Blocks widget. To display the 
   twitter widget you can simply use twitter widget shortcode that you can get from
   this plugin: [https://wordpress.org/plugins/ai-twitter-feeds/](https://wordpress.org/plugins/ai-twitter-feeds/).
 * Hope this helps.
 * Thanks
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648199)
 * Thank you very much. The CSS code snippet works.
 * However, you’re right. With the Blocks widget it would look nicer, if Twitter
   could be integrated nicely. But it does not really look good with the AI-twitter-
   feeds plugin either (as you can see now).
 * As mentioned before, it would be best, if you could embed the Twitter feed by
   integrating the code Twitter provides itself: [https://publish.twitter.com/#](https://publish.twitter.com/#)
 * However, in that case, I can’t control the height of the Twitter feed via HTML(
   as the attribute _data -height=”600px”_ is deleted when posting
 * Well anyway, I will find a way somehow.
 * Thank you so much again!
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648284)
 * One more thing:
 * I’ve used this custom CSS you’ve provided:
 * .frontpage_sidebar .widget_text {width: 33.3%;padding: 5%;box-sizing: border-
   box; color: #666; text-align: center;}
 * That looks very nice on the desktop, but its not responsive on mobile screens.
 * Is it possible that the three (or as implemented on the page: two) text widgets
   are put underneath each other when viewing with small screens/mobile devices?
   Does an CSS solution exists to that?
 * By the way, can I donate for your theme somewhere?
 * Best,
    M
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648288)
 * Hi,
 * Try adding this to your Custom CSS too:
 *     ```
       @media screen and (max-width: 560px){{
       .frontpage_sidebar .widget_text {width: 100%;padding: 3%;box-sizing: border-box; color: #666; text-align: center;}
       }
       ```
   
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648289)
 * Hi,
    that worked perfectly (I only had to remove one of the two leftbraces). 
   Thank you so much. Now my new website is finished.
 * Keep up the great work!
 * Again, if there is an option to donate some bucks, just let me know how.
 * Thanks & kind regards!
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648290)
 * Hi,
 * We appreciate your kindness. We do not accept donation but we would be grateful
   if you could donate to those who are needs:
    [https://watsi.org/fund-treatments](https://watsi.org/fund-treatments)
 * Many Thanks
 *  Thread Starter [Mallow Sour](https://wordpress.org/support/users/mstrautmann/)
 * (@mstrautmann)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648291)
 * What a wonderful attitude.
    I just did as you suggested.
 * Thanks again & all the best.
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648292)
 * Thanks 🙂

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Blocks Widget deletes HTML attributes’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/optimizer/0.7.4/screenshot.png)
 * Optimizer
 * [Support Threads](https://wordpress.org/support/theme/optimizer/)
 * [Active Topics](https://wordpress.org/support/theme/optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/optimizer/reviews/)

 * 15 replies
 * 2 participants
 * Last reply from: [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/blocks-widget-2/#post-7648292)
 * Status: resolved