Jump to content

Featured Replies

Posted
  • Community Expert

Hello IPS team,

Question, when added the "Raw HTML Widget" via Page Editor to my forum to show a Paypal donation button, it doesn't use the theme information to apply the style to the block. So it looks a little off and between my themes, it looks "tacked-on" so to speak. What do I need to do to make the Raw HTML Widget use the style-sheet information to match the themes when applied? It's missing the background and header of the other widgets. Look at the image below: (I managed to inspect element to apply the content box header but it's just per that one theme, it doesn't look correct across themes)

image.png

Edited by Kyle_H

Solved by Kyle_H

Go to solution
  • Community Expert

That raw HTML block is just that, it will create a block with your raw HTML. If you want any containers around it, you would need to add that in your HTML markup.

  • Author
  • Community Expert

Is there another widget that is available that retains the theme information to match the other containers that I can still use with HTML?

  • Community Expert

The Raw HTML block would be the only one which would evaluate raw HTML and template code

  • Author
  • Community Expert
  • Solution

For anyone in the future who runs into this issue and wants their Raw HTML Widget to match their forum and themes, here is what you need to do:

<div class="cWidgetContainer ipsWidget ipsBox">
  <h3 class="ipsWidget__header"><!-- header title --></h3>
  <div class="ipsWidget_inner">
    <!-- Your HTML content goes here -->
  </div>
</div>

Very grateful for ChatGPT to provide these answers and much more!

Recently Browsing 0

  • No registered users viewing this page.