CelticPride21
Forum Replies Created
-
Forum: Plugins
In reply to: [Slideshow] Changing HTML ComponentsI basically wanted to take the HTML portion of frontend_attachment.php and wrap it in a container div. The properties of that ‘.container’ div are in a stylesheet called ‘bootstrap.css’ thats located in ‘theme/stylesheets/bootstrap.css’. How do I reference this stylesheet so that the plugin recognizes it?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Using Relevanssi with a Custom TemplateSolved by using the default code for my search.php file
Forum: Fixing WordPress
In reply to: Blank Search Results PageManaged to solve the issue. Had to create a fresh search.php file mirroring WPs default code.
Forum: Fixing WordPress
In reply to: Initializing jQuery ScriptsWorked out perfectly! Thank you. Any suggestions for #3?
Forum: Fixing WordPress
In reply to: Initializing jQuery Scripts1) Should I remove the 3rd line, ‘wp_deregister_script(‘jquery’);’
2) So in a sense by setting wp_enqueue_script I’m appending the code to the bottom of my page(s)? If so that makes so much more sense to me and thank you so much for clearing that up!
3) My last question would be for a lot of these plugins they have their initializer and then a completely separate .js file. Should I just include the initializer in that .js file or is there something I’m still not understanding?
Forum: Fixing WordPress
In reply to: Initializing jQuery Scriptsfunction my_init() {
if (!is_admin()) {
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js’, false, ‘1.10.2’, true);
wp_enqueue_script(‘jquery’);// My Custom Script
wp_enqueue_script(‘scripts’, get_bloginfo(‘template_url’) . ‘/javascripts/scripts.js’, array(‘jquery’), ‘1.0’, true);
}
}
add_action(‘init’, ‘my_init’);Forum: Fixing WordPress
In reply to: Initializing jQuery ScriptsWould you be able to write a small example for this? I’m new to jQuery/WP integration.