product description text displays above website when in shop page [closed]

Your product descriptions contain html code which is inserted into description meta tags without proper escaping. The resulting meta tags look like this: <meta property=”og:description” content=”<p class=”p1″>100% Natural Anti-Ageing Face Cream with Marine Collagen, Elastin &amp; Essential Proteins – Anti-Wrinkle Cream to Repair, Restore, Rebuild &amp; Rejuvenate Skin</p>” /> The problematic part is <p class=”p1″> … Read more

Redirect WP 404 to html

It looks like you have it: ErrorDocument 404 http://domain.com/custom_404.php You just have to create the static 404 page called custom_404.php in your child theme or the root of your domain. Child theme would be: http://domain.com/wp-content/themes/child_theme/custom_404.php

Whitespace Before Doctype

Remove ?> in the end of all php files in your theme or plugins. Download WP archive and copy it to your working directory with replacing all files. It will replace all core WP files, so if there was a whitespace added – it will be removed.

Convert bookmarks.html file into WP posts

UPLOAD The simplest way would be to use a form plugin. People like Contact Form 7, WPForms, other people like Gravity Forms. If you want the uploads to be from WordPress users only. You can hide the form in a password page, generate forms through shortcode on PHP conditional. etc. You can create your own … Read more

display text on the same line

Note that the_author_meta() doesn’t return the meta value, but echoes it. That’s why the name is suddenly outside the <p> element. Use get_the_author_meta() if you need to return (and do something with) the field, rather than just display it. I’d highly recommend you to change your use usage of __() too, because that is not … Read more

Use of http form post

Honestly, your best bet is to actually use $_POST to process this logic. In your form, your submit buttons lack a name attribute which would allow you to do this: <form method=”post” action=”http://xxx.yyy/wp-admin/admin-post.php”> <td width=”60″ height=”26″> <input type=”submit” value=”Lot #” name=”lot”> </td> <td width=”154″ > <input type=”submit” value=”Name” name=”name”> </td> <td width=”154″> <input type=”submit” value=”Subdivision … Read more

How to disable escaping html chars in wordpress?

If you want to write some code, you can use a shortcode: add_shortcode( ‘unescape_js’, ‘add_js_code’ ); function add_js_code( $atts, $contents=”” ) { $contents = html_entity_decode( $content ); return $contents; } Usage – in text editor [unescape_js] Your js code && more js codes…[/unescape_js] But saving js code directly into DB is not recommended at all.

Adding to the WYSIWYG

TinyMCE has a ‘formats’ dropdown that you can add options to: This option enables you to add more advanced style formats for text and other elements to the editor. The value of this option will be rendered as styles in the styleselect dropdown toolbar item. https://www.tinymce.com/docs/configure/content-formatting/#style_formats The first thing you need to do is add … Read more