Blocks Widget deletes HTML attributes
-
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!
-
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
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!
…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.
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://ww.wp.xz.cn/plugins/column-shortcodes/and insert the 3/3 layout columns inside an Advanced Text widget.
Thanks
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!
Hi,
In that case, add the text widgets and let us know your site address so we can provide a custom css.
Thanks
Hi,
oh, that’s really great.I did as you said. An the website is this: https://mstrautmann.de/ms/
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://ww.wp.xz.cn/plugins/ai-twitter-feeds/ .
Hope this helps.
Thanks
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/#
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!
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,
MHi,
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;} }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!
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-treatmentsMany Thanks
What a wonderful attitude.
I just did as you suggested.Thanks again & all the best.
Thanks š
The topic ‘Blocks Widget deletes HTML attributes’ is closed to new replies.
