Custom Shortcode in home page unavailable

Posted in: Newspaper
Post count: 3

Hey, I can’t add any custom shortcode in the homepage. I’m able to do it in a post but not in the home page? is this expected behaviour?

Post count: 27744

Hello,

A shortcode can be inserted also by using the element called “Column text” or “Text with title”. “Column text” and “text with title” elements have a button called “edit content” and if you click on that button, the WP Editor will open, and you can add some text/code/shortcode there. Close the WP Editor from X, save the changes from Composer and view the page to see the changes.

Thank you!

Post count: 3

when I use one of them and put my shortocode i get this error

Errors at columns elements: 2(models) : 3(dom). The model does not match the content Current state has involved an issue. You could try an UNDO operation (CTRL+Z / CTRL+SHIFT+Z)

Post count: 27744

Hi,

You can try to revert an old revision on a page/template -> https://www.wpbeginner.com/beginners-guide/complete-guide-to-wordpress-post-revisions/
Also, what code did you add? Can you please provide a screenshot with the code?

Thank you!

Post count: 3

Hey, I solved it, apparently the problem was the html inside the shortcode included a div with a class td_block_wrap. once I removed that class it worked again. thanks for support

  • This reply was modified 1 year by capaio.
Post count: 27744

Hello,

I’m glad you solved it.

Have a great day!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.