Theme layout for home page [closed]

To the extent that this question is WordPress-related, here’s what you need to know: Start with a file named index.php. Give that file the following markup: <?php get_header(); get_template_part( ‘loop’ ); get_sidebar(); get_footer(); ?> The get_header() template tag will include a file named header.php. The get_template_part( ‘loop’ ) template tag will include a file named … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)