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”

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”

Replacing media urls on wordpress posts

Sometimes we work for a website with wordpress keeping the development version on sub directory. Say are working for http://www.example.com website and currently it is live and we work for it’s new version in wordpress. So we setup a new wordpress version on new folder so the current development version is http://www.example.com/new When we areContinue reading “Replacing media urls on wordpress posts”

how to make windows form application design looks like windows 7 – Enable Visual Styles

If you see any control visual looks is not just what it was looking on interface design mode (or windows style looks) like below 2 images Then It means you are skipping a method call from System.Windows.Forms Namespaces, that is¬†EnableVisualStyles To Enables visual styles or operating system like controls color, fonts and other visual elementsContinue reading “how to make windows form application design looks like windows 7 – Enable Visual Styles”

Returning a value to parent form from sub or popup form with C Sharp .net

It is a common features you may need it several times when you are on the way of a professional C# application development. Suppose you have a Parent form which has a Textbox control and a Button control. Now you want to click on the button Control then it will open a Sub form orContinue reading “Returning a value to parent form from sub or popup form with C Sharp .net”