Articles of theme development

Remove h1 from 2015 theme

I’m a WordPress newbie! I have two h1 when I list my site categories using a URL of the following format: http://www.example.com/category/YYY I get a HTML page with a header of Category: <h1>…. then another h1 with my post title. How can I remove the first h1? Things I’ve tried: I found the offending CSS […]

How to get DB options format without saving?

Using Unyson framework. I am getting theme options form data saved to a file. Was able to do that via ajax and JSON.stringify(form values in json format) problem I have is that the form data before it is saved via ajax is processed and for example the option that I see in form headers , […]

Change WordPress Resource URL

I have recently finished developing my latest WordPress theme for my own site and as usual I was going to use maxcdn and w3tc to make it faster! However my Hosting company have started up their own cdn service and I have got 3 months free to test it out! However it is not as […]

New to WordPress – Read the Codex, Other Docs; Still Confused

I’m new to web development and WordPress. I recently installed WordPress on my site. However, that is not the WordPress page; don’t get ahead of me! That page was created using Bootstrap. From my readings, I’ve learned that I need to create my own theme if I want to use that same styling that I […]

multiple html/css files for wordpress theme?

Ok so I am teaching myself how to code wordpress themes from scratch. I am using c9.io as an editor. I had a question. I have been looking at different tutorials at the template files they use, and most consist of only one style.css file, and then the php files. My question is this: When […]

Output unique taxonomy terms of posts inside a loop

I’m trying to dynamically populate a dropdown list of taxonomy terms (state is the taxonomy used) of a custom post type (product) on a search form. I can dynamically build the dropdown on it’s own, but I’m trying to set it up so that if multiple products are tagged with the same state the state […]

How to remove WP Title Tag?

I have addded a custom title tag for a custom post type in header.php like follows if(is_singular( ‘news’ )){ global $wp_query; $postid = $wp_query->post->ID; echo ‘<title>’. get_the_title() .’ of ‘. strip_tags(get_the_term_list( get_the_ID(), ‘genre’, ”, ‘ ‘, ” )) .’ read online</title>’; } This code works fine but I just do not know how to remove […]

License of the used Bootstrap Theme is not GPL compatible

I have made theme using material design html & css https://github.com/FezVrasta/bootstrap-material-design. But my theme is no getting approve because License of the used Bootstrap Theme is not GPL compatible, see https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE.md. How can i solve this issue?

How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme?

This question already has an answer here: Issues enqueueing parent & child theme stylesheets with revised Codex method 1 answer

What is the correct way to include my new functions and scripts in WordPress?

To include new functions we can write them in the theme’s functions.php. But I have to write my own functions in a new file rather altering the theme’s function.php. I can write any custom js action in footer.php, but I need to write it in other file. How can I do this? Is there any […]