Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]

As @Milo said , WP loads jQuery in no conflict mode so shortcut $ is not available for jQuery to use .You should not use the $ variable for jQuery within WordPress.As you said you are not into jQuery i’m just giving the code below..Try it. jQuery(function ($) { $(window).load(function() { $(‘#main-slider’).flexslider({ animation: “slide”, useCSS: … Read more

Why cant I change the text on this theme?

Looking through the docs reveals that you can either disable that slider all together, or add your own slides in it which will replace the default text that you see now. To add your own slides, use the instructions here: http://siteorigin.com/pitch-documentation/content/home-page-slider/ To disable the slider you should probably hunt for the option. I’m guessing that … Read more

Posts & page twice display

I just figure out the problem, the problem lies in WPML plug-in. I consider the answer to be posted here for other users. You have to put the following query in page.php or single.php to avoid duplicate/twice posts. <?php wp_reset_query(); ?>

Pages and posts on ElegantTheme featured slider [closed]

There are probably many problems here, starting with the use of query_posts() for a secondary query. The proper method is new WP_Query(), passing the relevant arguments. For example $featured_query_args = array( ‘post_type’ => array( ‘post’, ‘page’ ), ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘posts_per_page’ => (int) $featured_num, ‘post__in’ => (array) array_map( ‘intval’, et_get_option( ‘aggregate_feat_pages’, ”, … Read more

linking to an svg through comments_popup_link

The problem is the relative URL. You have to be careful with relative URLs in WordPress. Relative URLs are interpretted by the browser but the browser doesn’t know about the URL rewriting that happens behind the scenes. Think about where your index file appears to be– http://example.com/— vs. where it actually is– http://example.com/wp-content/themes/your-theme-name/index.php. Similar problems … Read more

How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?

I had the same problem. I used Polylang plugin and 3 languages. So i created 3 menus like this: https://www.diigo.com/item/image/4o9rz/opx5. after that i checked the language and displayed the correct menu,like this: <?php if (get_locale() == ‘en_US’) { wp_nav_menu(array( ‘menu’ => ‘Primary Menu En’, ‘depth’ => 2, ‘container’ => false, ‘menu_class’ => ‘nav navbar-nav’, ‘walker’ … Read more