Tag Info

New answers tagged

1

Just to add to the answer above, I agree 100% that those are a good basis, I try to use the yearly new theme every time, since all the new features will be implemented in it, and I can just pick what I leave out or not. Anyway, I've done this many many times and I believe it's not as painstaking as a task as Pieter suggests. You can get this done in 15min ...


3

I think that the default themes are there to be used. These themes are coded to the standards that should be used and excellent example for new theme authors to learn from. They are also all under the GNU General Public License. I would really think that these are excellent basis to work from when developing a new theme. Why reinvent the wheel when it is ...


0

You need to do the following in a child theme, do not make changes to the theme itself. Copy the content.php file to your child theme. In line 31, the excerpt is called to display the content. You will need to make this conditional with conditional tags to show the_excerpt() for all pages except on archive.php where the_content() will be shown You can do ...


2

When you're under Appearance > Menus, there should be a link in the top right-hand corner of the screen titled "Screen Options." Check "Categories" or anything else in order to add other items to the menus. This is useful in other pages of the dashboard as well, because some important items (post revisions for example) are hidden there.


0

We just pushed code to the repo that does this for you provided the attachment ID is the same. ;) Redux 3.2 will resolve this.


1

There needs to be a way to turn this off, because this was terribly slow for me too. I did find this plugin will disable it: Disable Google Fonts


0

Note as of wordpress 3.8.2 the type of the plugin item passed to this function has changed and it is now an object. /** * @package Plugin_Filter * @version 2.0 */ /* Plugin Name: Plugin Filter Plugin URI: http://www.brideonline.com.au/ Description: Removes certain plugins from being updated. Author: Ben Wise Version: 2.0 Author URI: ...


1

I would strongly suggest then that you create a child theme. It is really quick (takes less that 5 minutes) and your customizations doesn't get lost when you update your theme. You just need to copy 'header.php' to your child theme to modify. Also create a folder called 'images', this is where your custom logo will go. Line 24 <div class="header section" ...


0

The same WordPress install can only use one Theme at any one time. In order to have one Theme on {root} and a different Theme on {root}/blog, you would have to have either: Separate WordPress installs at {root} and {root}/blog A WordPress Multisite Network at {root}, with a subfolder-based network and a network site at {root}/blog


0

This would take a little bit of work, but you could adapt code from this plugin: http://www.mihaivalentin.com/different-wordpress-theme-depending-of-the-current-user/ First you would point all the domains to the same site. This plugin changes the current theme depending on the user logged in. But you could change the logic to change the theme depending ...


1

In general Child Themes are meant to be used for customizations on upstream parent theme. However views differ for specific types of customizations. Since shortcodes are related to your content a lot, it might be more robust to considering putting them into simple plugin (or "must use" plugin).


0

Ok, I fixed the issue. I noticed that if I went to any of the other pages, the theme showed up fine, but if I went to the home page, it was rendering the Asian characters. I noticed that in my home page template file there were two NUL charactares that had apparently slipped into the file: I do not know how they got there, but once I deleted them, ...


0

The first thing to check with a 'headers already sent by...' error is that you have no white space at the very start or the end of your php file. Check your images-options.php file and remove any errant space at the very start or the end of your code.


0

Given that your question is self-explanatory, here is a self-explanatory answer. <a href="themes.php?theme=mythemename&action=theme-details">My Modal</a> You need to put this in your code, otherwise it will not work. You need to click "Copy". Then open your code in the software. And paste.


2

That's a Shortcode. It may be possible to find the function that renders that shortcode and copy/paste it into your own plugin, making it theme-independent, however, how easy that will be to do depends on how the shortcode works- if it depends on additional php functions, JavaScript, and CSS embedded within the theme.


0

To guarantee that your taxonomy is never queried on the front end, you could strip it from all front end queries. add_action( 'pre_get_posts', function($qry) { if (is_admin()) return; $kill = 'genre'; // kill this taxonomy $tax_query = $qry->get('tax_query'); if (empty($tax_query)) return; $relation = false; if ...


0

Try echoing serialized($post); to make sure you're looking at the right page(s). It should return the post_parent so the problem may be either in the call you're making to get $post, or double-check that the set of pages did save with a parent page. Easiest way of doing that is call up "All Pages" and they'll be indented under the appropriate parent if ...


1

Is possible to make bootstrap css "contextualized" inside a selector, i.e. bootstrap styles works inside that selector, and thanks to css specificity rules, there them take precence over other rules. How to do: First of all download bootstrap less. Let's assume that this files are in 'bootstrap/less' folder. Now create a new less file, let's assume ...


0

Short answer: yes. Long answer: The Customize API uses one of two methods for storing customizations: the Settings API or the Theme Mods API (the latter being the default method). Thus, all changes are saved to the database, either as a Theme-defined option, or via theme_mods_{themeslug}. When the Theme is updated, the Theme files in ...


1

There's probably a few ways you could go about doing this: Method 1) Enqueue your styles after theme styles - View Codex Method 2) Use !important which will take 100% precedence - View Stack Overflow Method 3) If you're creating your own widgets you can insert your own <style> tags which will take precedence over any external files - View Stack ...


-1

And the answer is found in the file /wp-includes/script-loader.php. Change line 564 from this: if ( 'off' !== _x( 'on', 'Open Sans font: on or off' ) ) { to this: if ( 'off' !== _x( 'off', 'Open Sans font: on or off' ) ) { That's it.


1

Quick steps to identify exactly where it's coming from: 1. comment out wp_head(); in your header.php. If this removes the Google Fonts call then look through your active plugins and the theme (parent and child) functions.php files 2. deactivate plugins one at a time 3. swith to twentyten or similar theme Depending on which of these steps removes the line ...


2

It could be a configuration setting stored outside the files, and in the database instead. Using phpMyAdmin from the control panel of your host, Export the database, then open the SQL file in a text editor and search for the string. https://support.hostgator.com/articles/specialized-help/technical/exporting-a-mysql-database-via-phpmyadmin I assume you've ...


2

That option refers to show excerpt on rss/atom feeds, not to normal frontend archives. You can get that value using get_option( 'rss_use_excerpt' ); That is 1 if user choose "Summary", 0 if user choose "Full text".


1

You can simply delete the lines from your wp-config.php. define('FTP_HOST', 'yourhost.com'); define('FTP_USER', 'youruser'); define('FTP_PASS', 'yourpass'); However, this does not automatically mean that you are secure. There are a lot of backdoors where malware could be injected, starting from the server, security-issues in your plugins, outdated ...


0

Yor code is totally wrong here. Your idea here is not bad. If you have a look at the default comment_form, you will see $fields consist of the following, author, email and URL. That is why your code doesn't work, as comment_notes_before aren't in the $field field. I personally think here that the proper way to go here is to copy the first section of the ...


2

There are already an en_US.po file in the theme you are using. You can simply make a copy of that file and rename it as pl_PL.po. You can now open the pl_PL.po template with poedit, do all your translations in there, and just save it. Poedit will automatically create a pl_PL.mo template. No need to go through all the pt. Just remember, as previously ...


3

Hi to translate your website you can do the following: Define your language in wp-config.php : define('WPLANG', 'pl_PL'); Then generate a po file for your theme with e.g this service: iCanLocalize Scanner Then your po and mo files should be named pl_PL.po and pl_PL.mo and put into a folder called languages or lang or something like this in your theme. if ...


0

Milo is correct, it is a very broad question. That said, what you want to do is totally doable, BUT, it is going to take effort. There is no easy way in mergin two themes into one. You will have to set up a completely new theme, and then you have to start to extract every little piece of code from these two themes, add it into your new theme and integrate ...


0

Back up the config file before making a change; sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.back and then edit vsftpd.conf (with vi or nano) nano /etc/vsftpd.conf Then make the following change pam_service_name=ftp Save your change and restart the ftp server (if you use nano hit CTRL+O & enter to save then CTRL+X to exit) sudo service vsftpd ...


0

I contacted GoDaddy support and they advised me to login to the hosting manager and make the edits to the functions.php file from there. That way it worked ! Though i still couldn't figure out why i was getting that problem when i tried to edit it from within my WordPress dashboard, but anyways the problem is solved now. Thank you @ialocin and @s_ha_dum ...


0

/wp-content/themes/twenty-twelve/style.css will have a lot of the visual elements of the theme in it to get inspiration, however you must realise that each of the elements coded into the css is designed to go with each one of the div or other elements designed in wordpress... Back coding it will almost be harder than writing it from scratch. Also ...


1

I think you are looking for general HTML/CSS templates, not Wordpress themes. As the name suggests, Wordpress themes are designed to be used with Wordpress only. For general HTML/CSS templates, you could search Google for phrases such as: "HTML CSS themes" "HTML CSS templates" "HTML CSS themes 2014" etc.



Top 50 recent answers are included