Is it possible to create more than one design in a WordPress theme? [closed]

It is definitely possibly to create 3 (or more!) layouts within a WordPress theme. It all depends on your skill level and comfort with PHP and WordPress if you can do it yourself. WordPress allows for creation of multiple page templates within your theme (http://codex.wordpress.org/Page_Templates#Creating_a_Page_Template). WordPress also allows for creation of multiple menu location with … Read more

Enqueue script/style with multiple GET parameters

esc_url is run on the stylesheet URL and that converts those characters. You can work around it with a couple of filters. function style_params($src, $handle) { if (‘twentyfourteen-style’ == $handle) { add_filter(‘clean_url’,’alter_clean_url’,10,3); } return $src; } add_filter(‘style_loader_src’,’style_params’,10,2); function alter_clean_url($good_protocol_url, $original_url, $_context ) { remove_filter(‘clean_url’,’alter_clean_url’,10,3); $good_protocol_url = html_entity_decode($good_protocol_url); $good_protocol_url = $good_protocol_url.’&abc=def’; return $good_protocol_url; }

Theme now uses require.js and enqueue script no longer works

If the script is there it should work. It’s probably failing because you’re not declaring the jquery dependency and you’re not wrapping it correctly (in no conflict mode). Here’s how your script should be enqueued: function custom_scripts() { wp_enqueue_script( ‘unique-custom-script’, get_stylesheet_directory_uri() . ‘/custom.js’, array(‘jquery’) , false, true ); } add_action( ‘wp_enqueue_scripts’, ‘custom_scripts’, 99 ); And … Read more

Display Page featured Image as well as Posts featured Image

WordPress loop functions depend on the global variables, so you will have to get the data from page before you run the loop. Generally, you should be able to do something like this- $page_id = get_the_ID(); //this is important, we will use this later while(have_posts()): the_post(); //do something with the post here echo get_the_post_thumbnail( $page_id … Read more

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