ChrisHPZ
Forum Replies Created
-
Well I do use the Featured Listings widget in the main directory page but it only shows the listings, not the categories. I suppose I could alter the featured listings function though. Would you be so kind as to point out the files I should look at?
Forum: Plugins
In reply to: [WP Favorite Posts] How to insert the list of favs inside table or div?I’m trying to do the same thing. Seems like the favorites only get displayed when there’s an active sidebar in the theme. Sergei were you able to get this working? If so how did you do it?
Forum: Plugins
In reply to: [Displet Pop] Use page title and excerpt in popupGot it working, no need to assist anymore.
Forum: Themes and Templates
In reply to: [Quark] Link to external javascript fileAlways something stupid!! Some of my css styles were conflicting with other styles that come with this theme.
Forum: Themes and Templates
In reply to: [Quark] Link to external javascript fileAlthough this topic is resolved, I’ve run into yet another roadblock. My js code doesn’t work in WP, however it does work on the website this is going to replace. I know the file loads because I’ve seen and clicked on it from the View Source option. As an additional assurance, I put some silly
$(document).ready(function(){
$(“targetElementHere”).click(function(){
alert(“You clicked”);
});
});And that works. But the actual code I want doesn’t work. I’m missing something and it’s probably something stupid like file location. Anthony, do javascript files belong in the wp-content or wp-includes js folder?
Forum: Themes and Templates
In reply to: [Quark] Link to external javascript filejs/jsFunctions.js’, array( ‘jquery’ ), ‘1.0’, true ); should be
js/jsFunctions.js’, array( ‘jquery’ ), ‘1.0’, false);
false makes it load before any page content, I learned something, hahaha
Forum: Themes and Templates
In reply to: [Quark] Link to external javascript fileI’m effectively confused here. The code above works, but it loads my external js file at the bottom of the page after the content is loaded. jQuery is loaded before page content, which is how it should be. But everything I’ve read about external files state that they should be loaded before any content. There’s got to be something I’m missing here.
Anthony should this code be encapsulated in a custom function? Just thinking out loud here.
wp_register_script( ‘myscript’, trailingslashit( get_template_directory_uri() ) . ‘js/jsFunctions.js’, array( ‘jquery’ ), ‘1.0’, true );
wp_enqueue_script( ‘myscript’ );Forum: Themes and Templates
In reply to: [Quark] Link to external javascript fileYep, that did the trick. Thanks again Anthony, and if there’s any way I can get involved with future projects let me know. My skill set surrounds PHP, Web Design, jQuery, and graphics.