• Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

Custom CSS & HTML Save Changes button has broken

Scheduled Pinned Locked Moved Bug Reports
4 Posts 3 Posters 32 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DavidProjects
    wrote on last edited by DavidProjects
    #1

    When I click the save changes button in the custom CSS & HTML section nothing happens. It doesn't redirect me anywhere or do anything at all. It get errors in the console that relate to the name of some of the elements in the form are not focusable.

    Screen Shot 2020-08-11 at 1.24.07 pm.png

    It's definitely a problem in the Custom HTML at top form, the two invalid controls that arre throwing up the error don't show up in the editable box but they do show up in the code if you click the admin.php? link on the right in the console like so:

    Screen Shot 2020-08-11 at 1.26.39 pm.png

    If I edit the theme and delete the highlighted code from the css_html_options.php file I can save the custom HTML & CSS section again but it removes the ability to add any custom HTML which is definitely not ideal.

    Screen Shot 2020-08-11 at 1.17.36 pm.png

    I there a way to reset the custom HTML? I have no idea why this seems to have broken. I tried swapping themes to see if that would reset things but to no avail, is it best just to delete laytheme and reinstall it? Will I need to rebuild my pages if I do that?

    D 1 Reply Last reply
    0
  • D Offline
    D Offline
    DavidProjects
    replied to DavidProjects on last edited by DavidProjects
    #2

    Okay, so I managed to fix the saving problem by editing the theme in css_html_options.php and removing the '.$html_content.' code from line 113 below so it wouldn't return the broken code and I could save it as a blank again.

    Screen Shot 2020-08-12 at 11.22.47 am.png

    After some experimentation I've discovered that it breaks every time I use the <textarea> html tag. Is it related to the fact that line 113 is a text area and my code is interacting with what is being echoed in the php? I can put the code into the page but I guess it's interesting that the textarea tag breaks the custom html boxes.

    1 Reply Last reply
    0
  • RichardR Offline
    RichardR Offline
    Richard Global Moderator
    wrote on last edited by
    #3

    Dear @DavidProjects

    Great Inspection and isolation of problem
    I will add this to the Development notes so that we can have a closer look!

    Thank you for using Lay Theme and making the Forum stronger :)

    Sincerely
    Richard

    1 Reply Last reply
    0
  • arminunruhA Offline
    arminunruhA Offline
    arminunruh Global Moderator
    wrote on last edited by
    #4

    can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?

    1 Reply Last reply
    0

Before you post:

Use the Search Feature. Maybe there is already a solution to your issue.

1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. When using a WordPress Cache plugin, disable it or clear your cache.

Now see if your problem solved itself.

Go here, see if your problem is listed here:
Troubleshooting

When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it

Thanks!
Post a link to where the problem is if possible, please <3
I don't answer or check forum DMs, please just post on the forum.
Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
Online Users
laytheme.com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Login

  • Don't have an account? Register

  • Login or register to search.