Convert HTML5 to WordPress theme

You should start with tutorials on web to convert HTML5 to WordPress. The steps are too exhaustive to be covered in an answer here. However, here’s a link for you to get started. Also, don’t forget to check out WordPress Codex, the documentation which will guide you through WP functions, standards & APIS.

How to resize video lightbox popup in wordpress? [closed]

Check the avada-documentation: https://theme-fusion.com/support/documentation/avada-documentation/ -> Menu -> Extra -> Videos In Lightbox -> How To Set Video Size in Fusion Theme Options How To Set Video Size in Fusion Theme Options Step 1 – Navigate to the Avada > Theme Options tab. Step 2 – Go to the Lightbox tab, and locate the Slideshow Video … Read more

How can i hide the authors box from a specific set of categories and post types?

This depends on your theme. If it has no option for this, you’ll have to do this yourself. Find the template where the author box is generated (presumably single.php) and copy it to a child theme. Then make the production of the box conditional to the current category; if (!is_category (array (‘exclude-this-category, another-category-to-exclude’)) { echo … Read more

How to use esc_attr__() function properly to translate a variable that contains string?

If you have static text with dynamic content then you can use. printf( esc_attr___(‘static text goes here with %s’, ‘text-domain’ ), $title ); If you have only $title then no need to translate it. Just escape it. echo esc_attr( $title ); Note esc_attr, esc_attr__ and esc_attr_e used for escaping dynamic values from HTML element attributes. … Read more