Search Results for: ai content

How to add Automatic Table of Contents to WordPress
Tutorials
Firsh

How to add Automatic Table of Contents to WordPress

…of contents by hand. ;(function($) { $(document).ready(function(){ var $autoc = $(“.autoc”); var $content = $autoc.parent(); var stopAt = $autoc.data(“stopat”); var hs = []; switch(stopAt){ case “h6”: hs.push(“h6”); case “h5”: hs.push(“h5”);…

Read More +
How to Change the Author Slug in WordPress
Snippets
Attila

How to Change the Author Slug in WordPress

…) ); // Insert the row in the content echo preg_replace( $regex, ‘\0’ . $nicename_row, $content ); } add_action( ‘show_user_profile’, ‘lwp_2629_insert_nicename_input’ ); add_action( ‘edit_user_profile’, ‘lwp_2629_insert_nicename_input’ ); /** * Handle user…

Read More +
Use Selectors in Elementor Widgets to Control CSS
Development
Firsh

Use Selectors in Elementor Widgets to Control CSS

…structure, an array of key-value pairs translating to selectors-declarations. The output ends up in a file, so it’s not inlined once the user leaves the editor! Something like: /wp-content/uploads/elementor/css/post-1234.css Curly…

Read More +
Avoid WordPress Image Size Suffix in Filenames
Tutorials
Attila

Avoid WordPress Image Size Suffix in Filenames

…Its structure is similar to $_FILES array: Array ( [file] => …\www\wordpress/wp-content/uploads/2018/09/cat-w150xh150.jpg [url] => https://…/wordpress/wp-content/uploads/2018/09/cat-w150xh150.jpg [type] => image/jpeg ) Now comes the interesting part. When defining the title of the…

Read More +

Check out Justified Image Grid, my top-selling WordPress gallery that shows photos without cropping!

Show your photos with Justified Image Grid!