Auto Fill Input Fields for Unique Page Sidebars

When you are developing a website with WordPress and support for Unique Page Sidebars WordPress Plugins then you may noticed when add a sidebar all the widget parameters inputs are empty. Something like the below image Here with this code example you can auto fill the widget parameters. Step 1: include a javascript for WordPress adminContinue reading “Auto Fill Input Fields for Unique Page Sidebars”

Removing WordPress menu div tag and keeping ul [Code Snippet]

When you are working with WordPress menu then sometimes you may noticed if no menu is defined it is putting a div wrapper just above the url tag. Here is how you can remove that div and keep ul as it as. wp_nav_menu( array( ‘theme_location’ => ”, //Just keep this as empty ‘container’ => ”,Continue reading “Removing WordPress menu div tag and keeping ul [Code Snippet]”

Finding all parent pages in WodPress [Code Snippet]

Sometimes we needs to find all parent pages of current page in WordPress. It is useful to create a breadcrumb. Here is a example code snippet to find all parent pages. <ul class=”page-breadcrumbs”> <li><a href=”<?php echo home_url(); ?>”><?php _e( ‘Home’, ‘mondira’ ) ?></a></li> <?php global $post; $parent_id = $post->post_parent; $breadcrumbs = array(); while ( $parent_idContinue reading “Finding all parent pages in WodPress [Code Snippet]”

WordPress sidebars fetching on other cms with wordpress xml rpc

Recently I worked on a site which is using wordpress as it’s cms and creloaded as it’s web shop. So the wordpress was top of the shopping cart and then the shopping cart as webshop. So basically I had to develop the site using wordpress and then had to install that creloaded inside woordpress installation.Continue reading “WordPress sidebars fetching on other cms with wordpress xml rpc”

z-index of dropdown menu vs iframe (youtube) video issue

When you are using iframe to display any video, for example if you are using youtube iframe video and on your site it has a dropdown menu and your dropdown memu is showing behind the iframe video you can make it top of iframe video with below written jquery code. (function ($) { $ =Continue reading “z-index of dropdown menu vs iframe (youtube) video issue”

wordpress 404 redirect to other url

If you are using wordpress as blog of your website blog and you are using other cms as your main website now you want any 404 of wordpress blog will redirect to that other cms 404 page then you use below code example to redirect your wordpress blog 404 page. add_action(‘wp’,’determine_if_fourzerofour_page’); function determine_if_fourzerofour_page(&$arr){ global $wp_query;Continue reading “wordpress 404 redirect to other url”

Contact form 7 nice css3 styles

If you are using wordpress and for contact form Contact us 7 plugins then you can use below css3 codes to make that contact form 7 css looks nicer then default one! /*Contact Form 7 CSS Support*/ span.wpcf7-not-valid-tip{display: none !important; } div.wpcf7 .wpcf7-not-valid{ border: 1px solid #F00; margin: 0; } div.wpcf7-validation-errors{ -webkit-box-sizing: border-box; /* Safari/Chrome,Continue reading “Contact form 7 nice css3 styles”

Unique Page Sidebars Is not working

While working on wordpress to develop any website you may need to create dynamic sidebar for different pages, custom post type. You can use Unique Page Sidebar wordpress plugins from wordpress plugins repository for free. It works for perfectly on default wordpress single page also on different archive pages. For custom post type if youContinue reading “Unique Page Sidebars Is not working”

Upload featured image on custom post from wordpress front-end

When you are working with wordpress custom post type and you need to allow user can submit new posts where On each post you need to upload photo of the post also that can be a featured image then you need to follow below codes to upload attachmends and to make it featured. //Just uploadingContinue reading “Upload featured image on custom post from wordpress front-end”