Posts by Eight7Teen

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says
Most important is when you call some JQuery functions you do it like this:

jQuery(document).ready(function(){ jQuery(“div.topnav ul”).superfish({ animation: {opacity:’show’,height:’show’}, // fade-in and slide-down animation autoArrows: true, // disable generation of arrow mark-up dropShadows: false // disable drop shadows }); });

So every dolar sign $ must be replaced with jQuery in order to work with wp.

You can do it that way, but by using the method I showed above:

(function($) {
    // Yummy jQuery stuff goes here
})(jQuery);

jQuery is contained within it’s own namespace, and as such, you can use the $ in your functions without it impeding on any other javascript libraries.

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

You’d just have to make sure that they’re loaded after the wp_footer() call to make sure that jQuery was loaded first.

I guess I misunderstood your first post, I had thought you were saying that wp_enqueue_script() wasn’t loading jQuery as it should.

I’ve never bothered with using $j = jQuery.noConflict(); because the version of jQuery that’s loaded in by WP is automatically in noconflict mode. So instead, I just write all my jQuery functions like so:

(function($) {
    // Yummy jQuery stuff goes here
})(jQuery);
125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

I’m not a guru either, but I had this problem once and had to resort to using the following in my theme’s functions.php file to fix it:

function load_theme_scripts() {
    wp_enqueue_script('jquery', '/wp-includes/js/jquery/jquery.js', '', '', true);            
}    

add_action('init', 'load_theme_scripts');

The second set of single quotes is simply a hack to make sure that it’s loaded in the footer like I wanted it to be, because anything defined as a dependency in WordPress’ wp_default_scripts() function, will be overridden even if you use the TRUE at the end to make it load in the footer.

At any rate, by adding it into my theme’s functions.php file I was able to get it to load finally… I have no idea why it wouldn’t work before the wp_head() call, but this worked for me.

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

congrats dude!

Speaking from experience, for your future reference… When in doubt… BUY FLOWERS !

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says
  • Real Name: Josh Jones
  • Age: 27
  • Country : State/Province: Fort Smith, AR – US of A
  • Mac, PC or Linux: PC
  • Freelance, Hired, or Both: Freelance
  • Favorite Color: Red & Black
  • Favorite Dish: My Wife’s Pizza Casserole… YUM !
  • Catch Phrase: Whatever floats your train
  • Favorite Website (aside from my own): http://google.com (based purely on the amount of visits it receives from me versus other websites)
  • My Website: http://sexybookmarks.net
  • My Blog: Erm, I don’t blog except for SB
  • If I could do nothing else, I would be: working for some multi-million dollar webdev corporation
  • My favorite program I have installed is: Notepad (duh!)
  • Add something extra: something extra
125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

Hmm… that could work, I just don’t want to wind up blocking out too much of the image so as to make it lose any relevance it may have had to the post.

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

Thanks Keith, I’ll keep that in mind…

Surely someone else has some ideas as to different ways to layout the post meta information at the top of each post… no?

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

anybody?

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

Hey I was wondering if any of you awesome designers could give me an idea or three on how to maybe change up the first part of the single post layout I’m working on for my custom WordPress theme? Right now it looks pretty good, but I’m afraid it still looks pretty similar to Kailoon’s “My WordPress” theme that I’m currently using on my site.

All I’m trying to come up with is a different layout/arrangement for the first part of the single posts that will display the post image, post meta, and post title…

Here’s what I’ve got so far, input is welcome: Screenshot

125 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 1 and 100 dollars
  • United States
Eight7Teen says

Theme Forest has given a thing that has made me such a pancake head for counting my hard work with epileptic squirrels in my pool, but I sometimes get rich or die trying to give support to demanding clients which is not worthy enough because their pet terodactyls will nevertheless understand the crime scene of those who eat pizza calzone while baking an ultra slick Word Press theme with a cu3er slider which will always be lame and never succeed in the bacon-flavored Coca Cola, and the best so called rednecks succeeded in overpowering the ultimate destiny of Theme Forest with Ninja Turtles action figures that can Somersault and swing their nun-chucks (nun-chucks evolved) seventy times per millisecond and still end up with this lousy t-shirt; this made me quite peeved, and very sexually excited, because I saw this sentence over at McDonald’s and thought “omg … wtf this is not what I had over at Burger King instead of KFC , I want a piñata for breakfast” but instead, Santa baked yet another delicious bucket of baked pine-tree wrapped in tortilla and soaked in cheese blueberry bacon-smoked and eggs dipped in melted lava brownies; then one day a chicken crossed with Shopify + Tumbler to get pregnant shopping blogs that were sold at Theme Forest has given a thing that has made me such a pancake head for counting my hard work with epileptic squirrels in my pool, but I sometimes get rich or die trying to give support to demanding clients which is not worthy enough because their pet terodactyls will nevertheless understand the crime scene of those who eat pizza calzone while baking an ultra slick Word Press theme with a cu3er slider which will always be lame and never succeed in the bacon-flavored Coca Cola, and the best so called rednecks succeeded in overpowering the ultimate destiny of Theme Forest with Ninja Turtles action figures that can Somersault and swing their nun-chucks (nun-chucks evolved) seventy times per millisecond and still end up with this lousy t-shirt; this made me quite peeved, and very sexually excited, because I saw this sentence over at McDonald’s and thought “omg … wtf this is not what I had over at Burger King instead of KFC , I want a piñata for breakfast” but instead, Santa baked yet another delicious bucket of baked pine-tree wrapped in tortilla and soaked in cheese blueberry bacon-smoked and eggs dipped in melted lava brownies; then one day a chicken crossed with Shopify + Tumbler to get pregnant shopping blogs that were sold at the best little whorehouse in Texas

by
by
by
by
by
by