html code does not work on ‘posts’ and ‘pages’ but works on widgets. Why?
-
The following html code does not work on ‘posts’ and ‘pages’ but works on “widgets”. Why or what I am doing wrong?
Here is the HTML code in questionYellow Stars Green Clovers Purple Moons Blue something or other… Website URL is https://onlinefreetool.wordpress.com/2018/10/11/4-colour-table/
I would appreciate it if you could please tell me how to get it to work on my ‘posts’ and ‘pages’
I have tried the following browsers: Microsoft Edge, Google Chrome, Firefox and Explorer, and doesn’t work on any of them.The blog I need help with is: (visible only to logged in users)
-
Hi there,
I’ve tested your HTML codes and I found out the problem is with the theme (Rowling) you’re using.
See the screenshot when I used Rowling theme.
And when I used another theme (Independent Publisher 2), it works perfectly. See screenshot here.
I’m adding a modlook tag for you to report this issue to the staff. Thank you for your patience.
-
Hi onlinefreetool,
It looks like the colours you added are conflicting/working against Rowling’s table styles. When I increase the number of table rows, only odd numbered rows are affected. Completely removing the colour values from the table HTML leaves rows alternating between pale grey and white (no styles) — which is the default theme style.
I’ve been able to add a different colour for each table cell with a slight change to the table code:
<table> <tbody> <tr> <td style="background-color: #ffff00;">Yellow Stars</td> <td style="background-color: #00ff00;">Green Clovers</td> </tr> <tr> <td style="background-color: #ff00ff;">Purple Moons</td> <td style="background-color: #00ffff">Blue something or other...</td> </tr> </tbody> </table>Let me know how you get on.
staff-zara — thanks for help with testing, it’s much appreciated.
- The topic ‘html code does not work on ‘posts’ and ‘pages’ but works on widgets. Why?’ is closed to new replies.