Articles of themes

How to put a banner ad between post 1 and post 2 on homepage only

WordPress Swift Theme is installed on my My site From last few days, I am trying to find a solution to put an ad banner on homepage only between post1 and post 2. I have already tried on worpress support forum. Can anyone here help me out as i don’t have much knowledge about […]

Creating a rotating header /image slider using theme customization

So I’m learning WP and I want to create a rotating image slider for the header (like in this) using Theme Customization API. But I can’t figure out how to and what setting should I use to take the images and store it for later animation in HTML/JS. Help?

Overwriting templates in child theme and performance

Is it bad for performance to overwrite custom templates in the child theme? For example: I have a template called single-music.php in my parent theme. I have put single-music.php in the child theme and have made custom changes there. Is this bad for performance or the incorrect way?

Change settings of get_post_type_object

I’ve a theme with a plugin provided by theme developer for manage portfolios section. This plugin create a custom post type with this code: // Portfolio post type register_post_type(‘wyde_portfolio’, array( ‘labels’ => array( ‘name’ => __( ‘Portfolios’, ‘Wyde’ ), ‘singular_name’ => __( ‘Portfolio’, ‘Wyde’ ), ‘add_new’ => __(‘Add New’, ‘Wyde’ ), ‘add_new_item’ => __(‘Add New […]

woocommerce Add custom field set like billing fields

I am working on E-commerce functions where i require to Add custom fieldset as Profile Fields the fields in it are as billing Below are the Fields that is needed in My Check out and signup form profile_first_name profile_last_name profile_company profile_address_1 profile_address_2 profile_city profile_postcode profile_country profile_state profile_email profile_phone Can you please guide me on this […]

Include Max mega menu Plugin into theme

I want to add the Max Mega Menu plugin into my theme for a project. What i’ve done: copy and paste plugin folder into my theme include megamenu.php file into my theme function.php file Needed to work: include with theme active when theme active So, how can I include this plugin and activate it when […]

hfeed CSS class in Twentyeleven Theme

The twentyeleven theme has hfeed class attached with the main container #page. I could not find any definition of hfeed in style.css. Does it have any purpose or its just a random class name given?

What tags should be used for themes to show the type of layout?

In the Tag Filter the old tags ‘fixed-width’ and ‘flexible-width’ were renamed to ‘fixed-layout’ and ‘fluid-layout’. Also new ‘responsive-layout’ tag appears. Should users duplicate new tag ‘fluid-layout’ with old tag ‘flexible-width’? Or is it safe to use only new tags?

Some doubts about how to show posts in a custom theme?

I am pretty new in WordPress theme development and I have some doubt about this WP function used to show my post in the homepage: <?php if ( have_posts() ) : // Start the Loop. while ( have_posts() ) : the_post(); /* * Include the post format-specific template for the content. If you want to […]

add_action in functions.php, do_action in plugin?

I am trying to set an add_action function in my currently active WordPress theme functions.php file, for a defined do_action function within an activated WordPress plugin. The add_action function in my currently active WordPress theme functions.php file doesn’t work. However, it works if I copy the add_action function from my currently active WordPress theme functions.php […]