Simple loop with shortcode rendering problem
Simple loop with shortcode rendering problem
Simple loop with shortcode rendering problem
Deleting all Options on theme switch
This can be done a lot easier. It is just necessary to change the permalinks settings accordingly – as mentioned on github at the issue 3145: Meet this criteria: // If permalinks contain the shop page in the URI prepend the breadcrumb with shop if ( $shop_page_id && strstr( $permalinks[‘product_base’], “https://wordpress.stackexchange.com/” . $shop_page->post_name ) && … Read more
It’s sometimes a pain to work with post page and/or front page. I do not know if it’s the best solution for you but to me you’d better use front-page.php as the template file for start page. According to the template hierarchy this is recommanded : Used for both Your latest posts or A static … Read more
add_action( ‘wp_enqueue_scripts’, ‘ron_scripts’ ); function ron_scripts(){ if(is_home()){ wp_register_script( ‘homescript’, ‘/wp-content/themes/template/js/menu-home-open.js’ ); wp_enqueue_script( ‘homescript’ ); } else { wp_register_script( ‘nothomescript’, ‘/wp-content/themes/template/js/FILENAMEHERE.js’ ); wp_enqueue_script( ‘nothomescript’ ); } } alternatively replace is_home(); with any other method or code that determines what page you are on. ex: might work if(site_url() == get_permalink()){ //do home stuff } else { //do … Read more
Ubuntu 13.04 create new wordpress theme from scratch problems
You are right, you may have your own css rule not to follow 2013. I don’t think the 2013 theme is representing official ccs rule since 2013 is not from the wordpress team, it’s from Taiwan wp official. The reason 2013 is attached in the wp package is because it is a standard theme which … Read more
Custom Infinite-post-scrolling in a custom theme:
Pass a different id for each sidebar or you will overwrite the same sidebar again and again. You can also just leave the id argument out, and WordPress will create one automatically. Side note: __( $area. ‘ Widgets’ ) and __( ‘Widgets in this area will appear on the ‘ . $area ) … are … Read more
This thread seems to answer your question http://swiftthemes.com/forums/showthread.php?1542-Social-Media-Icons-like-on-the-demo-page 1) Enable header ad 2) Insert some HTML to render the social media links and icons