Tag Info

New answers tagged

0

If you look at how the code works, you should notice that theme mods are saved in the *_options table under theme_mods_{theme_slug} with the theme slug being, as near as I can tell, the directory name containing the theme stylesheet, so: $ptheme = get_template_directory(); $theme_slug = basename($ptheme); $mods = get_option( "theme_mods_$theme_slug"); As ...


0

About the link you provided The black bar is part of the .pagewrapper but there is no width specified for pagewrapper. .pagewrapper { left: 0; position: relative; transition: left 500ms ease-in-out 0s; } The post content is set a max-width: 700px, it will not extend the boundary. .wrapper { margin: 0 auto; max-width: 700px; width: 90%; } ...


0

I think I found a solution, but before a little Premise load_theme_textdomain() and load_child_theme_textdomain() are basically equal, the only difference is the default path they use: they get the current language (using get_locale()) and add the relative .mo file to the path passed as argument; then they call load_textdomain() passing as argument both ...


0

It is extremely unlikely that code file of identical content would behave differently. From your description of situation I see two possibilities: File does get changed for some reason, you should not only upload clean copy, but actually compare what you have on server at that point against what you have locally You are mis-identifying upload as the key ...


0

I tried to add the templates usage info, directly into the template dropdown, with the theme_page_templates filter: add_action( 'load-post.php', function() { add_filter( 'theme_page_templates', function( $page_templates, $obj, $post ) { foreach( $page_templates as $key => $template ) { $posts = get_posts( ...


4

What you need to do is compare the values of the meta field _wp_page_template, which contains the page template selected for a single page with the available page templates. For this you need to construct an array of used templates, because you want the templates used by all the pages, similar as shown here: Return all custom meta data for one custom ...


0

This is my personal view if I am the theme user. I would say it depends on the theme features If it's a one page theme? I will like to have all the options in the customizer window. If it's a niche/app based theme? I will just use the customizer for basic options and setup all the other options in my very Theme options panel in Admin Area.


0

You can use language files that are in your child theme folder. First you have to know which text domain the parent theme is using. Then create the .po and .mo files with only your language as the file name (e.g. de_DE.po/de_DE.mo or nl_NL.po/nl_NL.mo) and put them into a folder within your child theme directory, "languages" for example. You can then ...


3

They're probably referring to the functions file in your theme, functions.php. This file is loaded by WordPress during setup, and gives you an opportunity to do things or register hooks and filters. Note that this file is optional, and not every theme has a functions.php, if that's the case just create one yourself Keep in mind the only thing that's special ...


-2

I don’t really think that it’s possible. Actually WordPress is a whole stack of functionality that is available at WordPress core. If you download any simple CSS template then definitely it will work for you. However Wordpress themes as available on the net or many other sites are only compatible with WordPress.


0

I was trying the same thing to achieve this but finally i found a better solution here. It works with regular taxonomies (categories) and also work with custom taxonomies. You should check its code inside or can use it as it is if the requirements are the same.


0

Yes, Wordpress does provide Theme API function. I know the question is asked a year ago, but if you want it still, here's the solution. A brief explanation of usage of Theme API is given here: http://code.tutsplus.com/articles/interacting-with-wordpress-plug-in-theme-api--wp-25805 [Go to the Themes API section which is after half of the article] Along ...


0

You can customize the look and feel for a specific page within the same theme using some of these methods (maybe more): Use a dedicated template for specific pages. For example, if the ID of your page is 45 you can create a template with the file name page-45.php. See template hierarchy. Use a reusable page template. See page templates in Codex. Use the ...


0

Pages are an independent entity separate from whatever theme is active at that moment. This is the design paradigm of most CMS systems that separate the concerns of site content from the view or rendering layer which allows a site owner the chance to change how his site looks without having to worry about the contents. HOWEVER, it would theoretically be ...


0

I just lost all my theme settings when transferring from localhost to server. Then I discovered in my Appearance | Theme Settings an option to Import/Export code. I think you can use this to transfer settings from within the Theme options panel. I didn't try it cos I had already set everything up again. But might be handy for another transfer installation.


1

Solution if submit button disappears and notes: In case you lose the submit button of your form, in addition to Pieter Goosen's answer, you should add those lines to the defaults array parameters list: 'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />', 'submit_field' => '<p ...


2

This is how I would do it in a plugin: Install WordPress as a multisite with subdomains. Use the main site for the theme shop, install Easy Digital Downloads or another shop plugin. Create a product for each theme, make sure the slug matches the theme directory name. Upload your themes. Write an empty function wp_install_defaults() to prevent the default ...


0

I believe the 'strange' character is one that exists outside of the standard character set. Some browsers and text editors will display this as a small square or rectangle, some may display a small dot, some may not display it at all. It could have crept in through a copy and paste, but that's just a guess. If commenting the tag out and adding a fresh one ...


0

I managed to fix this issue by commenting out the first body tag and placing a second body tag below like this: <!-- <body> --> <body <?php body_class( $class ); ?>> Now the site is working correctly. However the strange character is still appearing in the first body tag. Hope this helps someone.


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 ...



Top 50 recent answers are included