Tag Info

New answers tagged

0

You must separate the template file who you want Like get_template_part('file_without_php');


0

Good day, Thank you for your reply. I am fairly new to this. Unfortunately, using child theme did not occur to me until recently. I have downloaded it from World Press. Well, apparently, the update did occur automatically (not done by me), since there are no more updates left in my Dashboard. It changed colors and fonts. Thank you. air


0

Based on your text, I'm assuming you changed the logo, pictures, layout, etc. through a "theme options" section in the WP Admin, instead of editing css/js/php files directly? Whenever a theme is updated, typically (though this depends on theme) only the files are changed/overwritten. The types of changes you made are stored in the database and therefore ...


0

You do not specify where did you download theme from. I don't quite follow if you performed the update in the end or not. Assuming you meant official WP theme repository then mechanics of update are essentially removing the whole folder and placing a fresh copy in its place. This shouldn't have had any partial effect on file-based changes. Typical and ...


1

Use this basic theme with default features that should begginer person to know. A just right amount of lean, well-commented, modern, HTML5 templates. A helpful 404 template. An optional sample custom header implementation in inc/custom-header.php Custom template tags in inc/template-tags.php that keep your templates clean and neat and prevent code ...


0

For learning & understanding I think you should start from wordpress blank theme


1

Go with WordPress TwentyFifteen or any other default theme. You don't have re-invent the wheel, you will save a lot of time.


1

I can't vote up the answer above, but its right... two ways of enabling a theme - one in the network site and making it network activated - this then shows in the all of the sites under appearance as normal. The second is not to network activate and then it shows as you have described and you can enable. You still have to activate the theme as normal mind... ...


0

I would agree to the comment by Howdy_McGee to use Custom Fields. A nice implementation would be possible with add_meta_box(). 1. Approach: The body_class Filter So for example, you could let him enter a custom field 'color-scheme'. In the next step, you could simply hook into the 'body_class'-filter and add another class to the <body>-tag ...


0

You don't specify the difference in details, but I would guess the two themes aren't any, or at least much, different outside of color scheme. My approach would be simply to implement one (or both) color schemes as secondary CSS stylesheets to enqueue conditionally and stick with same theme for both of them.


0

I do not currently have access to a multi-site, but as far as I remember: Each site in the multi-site install can have their own theme; same with the plugins. However, you can install themes in the main site profile and it will display as optional themes for all the other sites in the multi-site install. I am not sure I answered your question. Please ...


2

Own theme If you are using your own theme, no need to worry about, because /languages folder is in your control that way. :) Other's theme But your concern is about other's theme and you want to apply your translations into that theme, then the best way is to make a Child Theme. Because you are actually modifying that theme. Make your languages files and ...


0

(See comments by others for your PHP error - though I'd recommend a good editor or IDE to help you spot syntax errors quickly and tidy the code for you as you type.) Re: the question title, no, you usually don't have to do a clean install if there is an error with a theme and you find yourself locked out of the main site and /wp-admin. There's a simple way ...


0

in line 37 of your HTML-Code you have the following declaration: #header-background, #colophon, #site-navigation { background: url('') no-repeat center center fixed; background-size: cover; -moz-background-size: cover; -o-background-size: cover; -webkit-background-size: cover; } With Firebug I see, this is overwriting your CSS declaration, ...


1

get_template_directory() gives you the path to the parent theme while get_stylesheet_directory() gives you the path to the child theme. Docs: https://codex.wordpress.org/Function_Reference/get_stylesheet_directory https://codex.wordpress.org/Function_Reference/get_template_directory


0

There's possible a couple different things going on, so here's a relatively generic answer. Site URL Many URLs are influenced by the Site URL settings in Settings > General. The steps for properly moving a site are too long for a single answer, but review the "Changing the Site URL" codex page and make sure you've covered all the steps. WordPress API URL ...


0

In your case it might be only a network issue. But I've had an issue with the same warning (so it may apply, though it may have several possible reasons) and found a solution within Wordpress here, though on localhost. They suggested replacing the files referenced in the error message by the same files from fresh install of the same Wordpress version (just ...


0

This was happening because of a woocommerce.php file in theme's root folder, that was overriding a lot of stuff, including single-product.php, via woocommerce_content() function. As redelshaap and woocommerce's documentation say, this is not the best way to implement theme compatibility and customization... ...


1

pagename is for request page (core page post type) by slug. What you want, if I understood correctly, is to get "attorney" posts that belongs to same case-log terms that current "case" post. I would do it something like this (not sure where you are going to execute the code, I've tried to code as universally as possible): if( is_singular( "case" ) ) { ...


0

The maximum width of an image displayed in content is not just determined by the image sizes you set or CSS settings, it is also determined by the content width set in functions.php through code similar to the following if ( ! isset( $content_width ) ) { $content_width = 960; } You need to set this to your required size as well in order for the image ...


-2

Did you try width:100%; in your css?


0

Through some trial and error I found the solution. It's far simpler than I thought. For example, because my page is the homepage, I use this as my link in the menu: /#one As opposed to: #one And it works. It doesn't matter what page I am on, once I click that link it takes me to the correct page and then to the correct section. If you want to target ...


0

Themes can override WooCommerce default template pages, to customize the appearance of those pages easily. There should be a folder within your theme folder called woocommerce. WooCommerce checks for template files within that folder first. If a file doesn't exist there, it loads it's own template file. Edit: If you want to customize those pages, check out ...


2

You cannot access the $headers property as it is a private property. Members declared as private may only be accessed by the class that defines the member For that reason, you get NULL when you try to access the property with wp_get_theme()->headers. You need to make use of the magic __get() method of the class to get the info you are after. ...



Top 50 recent answers are included