Articles of theme development

How to develop child theme for thesis

I have thesis theme but for that thesis I want to create a child theme but I am not find out any help for starting. even i have search on Internet but nothing found Hey any body have any idea regard this then please help me. I am waiting for your reply Thanks

Can I individually style items in the backend widget list?

UPDATE Refrased the question On the backend widget page widgets.php, there is a list of available widgets. Items in this list have the same classes and a dynamically generated ID, which changes if a new widget is inserted (alphabetically) into the list. So, there is no reliable way to direct css at individual items in […]

Is there a filter for enqueue script to strip the type=“text/javascript” property

script type=”text/javascript” is optional in HTML5 and all browsers (even old ones) recognize JavaScript without it. I am building an HTML5 site and want my script output to be consistent. However, scripts that use the WordPress enqueue function are printed withtype=”text/javascript”. CSS is also printed with type=”text/css”, which is also not needed. I can’t find […]

Administration Pages Styling

I am adding administration pages using add_menu_page() function. But it wont look good. Check the image below. I would like to have it as separated and in between Appearance and Plugins section with rounded borders.

menu behavior is not as expected

I am trying to develop one of those nav menus that has one on top of the other like so: I am not sure if the issue is with the way I coded my header.php: <!– HEADER ========================================================================================== –> <header class=”site-header” role=”banner”> <!– NAVBAR ====================================================================================== –> <div class=”navbar navbar-default navbar-fixed-top” role=”navigation”> <div class=”container”> <div class=”navbar-header”> […]

need advice on how to do a lists using custom post types – taxonomy vs postmeta

i am building a lists plugin …. i want to have a custom post type “lists” and then obviously also there would be a number of list items for each list …. i have read a fair bit of stuff about taxonomies vs postmeta but i’m still unsure as to which i should use or […]

How to handle custom form submission?

I created a theme, in that theme, there is a custom form in the footer, The front end is good, But I don’t know how to handle the back-end of the form submission in WordPress. I mean I could create a handle_form.php in the simple website, Or handle the form on the same page, But […]

How to Include SVG sprites icons into the body tag?

I want to include an SVG icon file after the body tag and I’m using this code: <?php include_once(“assets/img/sprites.svg”); ?> But I get this error: Parse error: syntax error, unexpected T_STRING in /home/ostadba1/public_html/wp-content/themes/ostad/assets/img/sprites.svg on line 1 the purpose for this is that I want use those icons with one line of code: <svg class=”icon”><use xlink:href=”#shopping-cart”></use></svg> […]

Excluding categories from “Manage Categories” using a get_terms filter

I’m using a filter on get_terms (see below) to remove a specified number of named categories from the “Manage Categories” listing. It works great, however, the excluded categories are still counted in the category count field that’s displayed just under the “Search Categories” button. Is it possible that I can subtract these categories from the […]

using wp_enqueue_script to attach jquery-ui

I am trying to load jquery-ui using wp_enqueue_script. I can check that jquery is loaded. jquery-ui is registered i.e. output of var_dump( wp_script_is( ‘jquery-ui-tabs’, ‘registered’ ) ); is bool(true) which indicates it is registered but it does not get included to the page. I am using wordpress version 3.3.1 What is going wrong? I am […]