Wordpress

Stack overflow error in Internet Explorer with Nivo Slider

Geplaatst in: Wordpress op 11 oktober 2011 door hrbrt – Geef als eerste een reactie

Internet Explorer was giving a ‘Stack over flow error at line 1010 after integrating Nivo Slider in a WordPress template.

Debugging the page using FireBug in FireFox browser I found that there was also an error saying:

too much recursion:

return (inline === false ? this.toArray() : this)._reverse();

Then using Google I found the solution;

I tracked it to Prototype.js and then to the Nivo Slider script. This error occurs everytime the Nivo Slider script is finished with it’s loop through the images and is about to begin the loop again.

I had the very same issue and I resolved modifying jquery.nivo.slider.js or jquery.nivo.slider.pack.js at the very bottom from:

 

$.fn._reverse = [].reverse;

to

$.fn._reverse = []._reverse||[].reverse;

Now the libary works with or without prototype.js, choosing the right function.

Keep anchor links working in MailPress when using the tracking add-on

Geplaatst in: Wordpress op 23 februari 2011 door hrbrt – Geef als eerste een reactie

Using the MailPress tracking add-on changes all the links in the email to special tracking links. When you are using anchor links in your email newsletter these links are also changed to tracking links and will not work anymore. There is a solution all though hacking the core files is never a good option. I could not find an alternative so here it is:

in mp-content/add-ons/MailPress_tracking.php near LINE: 127

under the line:

if (strpos($match[1], 'mailto:') !== false) continue;

add:

if (strpos($match[1], '#') !== false) continue;

This will leave all ‘anchor-links’ untouched.


Remove TwentyTen child theme standard feeds

Geplaatst in: Wordpress op 5 oktober 2010 door hrbrt – Geef als eerste een reactie

When using WordPress as a CMS and not as a blogging tool it is nice to have control over what feeds you are including. Most of the time you will not need the comments feed when using as a CMS. In TwentyTen them the feeds are already included so if you base your child theme on this theme, you will have to switch them off. Here is how you do that…

In themes/twentyten-child/header.php add the following line just above wp_head();

// remove default posts and comments RSS feed links to head
 remove_theme_support( 'automatic-feed-links' );

Then add you own custom feed links in header.php

<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="<?php bloginfo( 'rss_url' ); ?>" />

Make sure you put them in the header outside the PHP tags!

Twentyten child theme add custom header images

Geplaatst in: Wordpress op 23 september 2010 door hrbrt – 11 Reacties

So you need to add your own custom image in the images array of your Twentyten child theme? It’s is not to hard, here we go… (meer…)

Wordcamp NL 2010

Geplaatst in: Wordpress op 6 september 2010 door hrbrt – Geef als eerste een reactie

WordCampNL Button 468x60