Articles of themes

Moving wp-content folder

I want to move wp-content folder out of wordpress installation folder. I have set define(‘WP_CONTENT_DIR’, ‘/opt/deployer/wordpress/wp-content’ ); in wp-config.php file. But themes stopped working on site. Please help me.

Static page not working

First, context: I am not developing a theme, I am not mucking around with PHP. All I wanted to do was throw up a quick temporary WordPress site in a few minutes, paste my content in, and call it “good enough” for a month until I could sit down and dedicate real time to building […]

Create fixed static pages

I have inside a theme two important static pages. One is a confirmation page (after signing up for a newsletter) and the other one is a thank-you page. I am using these in various functions and create them upon theme install with predefined content. The problem is some users tend to change the slug, or […]

WordPress root directory change + Theme directory change

I’d like to create the following structure for my WP installation: htdocs (base dir) wp (WordPress dir) themes (WordPress theme dir) plugins (WordPress plugin dir) upload index.php .htaccess So far I’ve been able to change the WordPress root directory [1] (which means that even though we’re on «wp», we don’t see the http://example.com/wp url, but […]

Override css rules of a plugin within my own theme

I want to override some rules of a plugin css file within my own theme so next time that I updated that plugin, my settings of that plugin be in a safe place . currently I copied that css file into my theme and changed some rules.So then I need to override this rules. I […]

Implementing custom tag/tax pages

My question has a couple of aspects: My current custom theme is fairly vanilla, with a homepage, tag/tax index page and content page templates. I want to be able to have a couple of custom layout templates for tag pages, so rather than the template hierarchy simply loading the template php, I want to: check […]

WordPress theme layout problem

In Drupal, we have blocks to customise the layout. I am new in WordPress, if I want to change my layout to the second image. What should I do? Does wordpress have block region that can know how does the theme region looks like?

Child theme looks different from parent theme, and incorrectly displays parts

I’ve created a new WordPress site using the Realistic theme. I added a logo, and this was the resulting webpage (ignore the sidebar): I want the website title to be displayed next to the logo, for which I’d need to edit the header.php file. So, I created a child theme, and this is the result: […]

How to add a second stylesheet to the editor

Is it possible to add another stylesheet from my theme directory, to the Appearance > Editor screen?

Using Grunt and keeping theme comments

I used Grunt to minify CSS then combine them together in my WordPress theme. I combined all the CSS into 1 file called main.css . However in order to register the theme I still need a style.css with theme comments. The issue is Grunt gets rid of comments. I would like to do achieve this […]