I have problems with loading javascripts

You seem to be loading both file/folder names into the queue. get_template_directory_uri() . ‘http://fitclaw.com/wp-content/themes/Coming%20Soon/js/jquery.js should only be: get_template_directory_uri() . ‘/js/jquery.js’ And so-on and so-forth. because get_template_directory_uri returns, or should be returning this string for you: ‘http://fitclaw.com/wp-content/themes/Coming%20Soon/’ And you should always try to use those relative paths versus hard-coding them.

How to create first post, fifth post full width, rest in three columns and so on

<?php get_header() ?> <div class=”container-fluid”> <div class=”row”> <?php $i = 0; while ( have_posts() ) : the_post(); ?> <?php if ($i == 0 || $i % 4 == 0) : ?> <div class=”col-sm-12 blog”> <div class=”row”> <div class=”col-sm-8 p-0″> <?php the_post_thumbnail()?> </div> <div class=”col-sm-4 align-self-center”> <div><h3><?php the_title()?></h3></div> <div><?php the_excerpt()?></div> </div> </div> </div> <?php else: ?> … Read more

Make wp_link_pages() suitable for Twitter Bootstrap markup

There was a trac ticket requesting improvements to the function since it was inflexible, yet required for themes hosted in official repository. It had been resolved, adding much needed wp_link_pages and wp_link_pages_link filters, so now output can be cleanly modified without need to use custom function. I went through quite a few takes on this … Read more

Using twitter bootstrap in a theme

Almost. Put the bootstrap stuff in your theme, and include it on the front end using wp_enqueue_style and wp_enqueue_script in functions.php e.g. for the bootstrap js: function my_scripts_method() { wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array(‘jquery’) ); } add_action(‘wp_enqueue_scripts’, ‘my_scripts_method’); And for bootstrap.css: add_action( ‘wp_enqueue_scripts’, ‘prefix_add_my_stylesheet’ ); function prefix_add_my_stylesheet() { // Respects SSL, Style.css is relative … Read more

Using Bootstrap Switch with WordPress

I had a try with that. You’ll need Twitter Bootstrap‘s CSS file, Bootstrap Switch‘s CSS and JS files. I put all those three files in a folder called assets. functions.php: <?php add_action( ‘wp_head’, ‘rr_bootswitch_meta’ ); add_action( ‘wp_enqueue_scripts’, ‘rr_bootswitch_enqueue’ ); function rr_bootswitch_meta(){ print ‘<meta http-equiv=”X-UA-Compatible” content=”IE=9; IE=8;” />’; } function rr_bootswitch_enqueue(){ wp_enqueue_style(‘bootstrap-css’, get_template_directory_uri() . ‘/assets/bootstrap.min.css’ ); … Read more

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