Add mark-up after/before link in wp_list_categories

one possibility – add a filter to functions.php of your theme: add_filter ( ‘wp_list_categories”https://wordpress.stackexchange.com/questions/58006/,”span_before_link_list_categories’ ); function span_before_link_list_categories( $list ) { $list = str_replace(‘<a href=”https://wordpress.stackexchange.com/questions/58006/,”<span>&#124;</span><a href=”,$list); return $list; }

wp_register_script Question

If you need to add it in the head, then this might help you: <?php add_action(‘wp_head’, ‘add_attr’); function add_attr(){ ?> <script data-cfasync=”false” type=”text/javascript” src=”http://use.typekit.com/YOUR-KIT-ID.js”></script> <script data-cfasync=”false” type=”text/javascript”>try{Typekit.load();}catch(e){}</script> <?php } ?> Make sure your theme has the wp_head function call. You’ll need wp_enqueue_scripts or wp_register_scripts only if your JS code in in some other .js file … Read more

jscrollpane problem with my child theme

i did it like that and its working now function kia_enqueue_scripts() { //use google’s jquery wp_deregister_script( ‘jquery’ ); wp_enqueue_script(‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js’); //load up your own plugin wp_enqueue_script(‘easing’, get_stylesheet_directory_uri() . ‘/js/jquery.easing.1.3.js’); wp_enqueue_script(‘custom’, get_stylesheet_directory_uri() . ‘/js/jquery.custom.js’); wp_enqueue_script(‘mousewheel’, get_stylesheet_directory_uri() . ‘/js/jquery.mousewheel.js’); wp_enqueue_script(‘jscrollpane’, get_stylesheet_directory_uri() . ‘/js/jquery.jscrollpane.js’); } add_action(‘wp_enqueue_scripts’, ‘kia_enqueue_scripts’);

Is it possible to append an external html file to my wordpress navigation?

I got this to work on a static html page. The problem seems to be the white space in the append. I also removed all the ‘\’ and changed append to use single quotes. Maybe a jQuery expert can enlighten us. (function() { $(‘#mainMenu ul li.page-item-13 a’).append(‘<div id=”megaMenuCopy”><h3>The Range</h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing … Read more

Ajax call does not work for this custom code

Instead of doing: data: {action: ‘performers’, catname: catname} Try: data: ‘action=performers&catname=”+catname; You may also want to define “catname” globally, i am not sure if scope is an issue with your ajax handler but this could be why it is not being set. As an example try to alert catname within the ajax handler above cache=false; … Read more

jQuery dialog prints HTML-Tags under WordPress

It’s sort of a longshot, but maybe try something like this: $(‘#button-setup-league’).click(function() { $( “#dialog p” ).html(‘<span>’+wpslm_v_script_vars.delete_league+'</span>’); $( “#dialog” ).dialog({ modal: true }); }); This, of course, requires “#dialog p” to be initially empty, or assumes that its contents can be replaced entirely. If not, maybe you can use the solution above but with a … Read more