Tag Info

New answers tagged

0

You can use this ThemeUpdateChecker class http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/ Basic outline of the process: Have a fixed spot on your server to both house a little bit of data about the current version and a zip of your theme files. Hook an action into pre_set_site_transient_update_themes In that action, ping your ...


0

You can update your theme from Git or BitBucket Private Repo. There are some good PHP Libraries that will allow you to update your theme from Git/BitBucket without much of a hassle. As mentioned by Pieter, feel free to use site search as well as Google. ;-)


0

I think you mean "W3 Total Cache". GoTo admin panel hover on performance -> click on empty all caches. I think this may help you. And make sure all files have same name.


0

If you're updating the theme design but are not able to see the live changes and as you wrote, messed up design, you should purge the WP Total Cache. For that go to WP Total Cache and click on 'Delete Cache' or any similar option. Also, be sure to check the validity of your browser cache. You can check that in your .htaccess file.


0

After some more investigation I found that the issue might be on my Timber theme. The variable that retrieves the theme path on Timber side is not correctly set. There is already an existing bug in Timber about this: https://github.com/jarednova/timber/issues/619#issuecomment-136096298


0

You can move the installation and also plugin and content folder. The follow source demonstrate this. //*// Custom content directorydefine( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/wp-content' );define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content' );// Custom plugin directorydefine( 'WP_PLUGIN_DIR', dirname( __FILE__ ) . ...


0

If you've modified the theme's built-in stylesheet, then any changes would be overwritten when you update the theme. If that's the case, you have a choice: either don't update the theme, or move your modifications to any type of CUSTOM CSS area that the theme may provide.


6

The first location where PHP would look for relative path will not be the file you specify include in, but relative to point of entry file (index.php or whatever). Files are included based on the file path given or, if none is given, the include_path specified. If the file isn't found in the include_path, include will finally check in the calling ...


0

You are mixing up a couple of things here, namely register_sidebar() This is to register a sidebar so you can put stuff into it in the backend. get_sidebar() This just includes a file sidebar.php (or sidebar-nice-bar.php if you call get_sidebar('nice-bar')) from your current theme dynamic_sidebar() This actually displays the widgets you have added in ...


0

get_sidebar('left'); actually refers to a file, not the sidebar itself. Are you seeing the sidebar in the Admin section? Are you trying to display it on the front end? If the answer to both of these questions are "yes", then here's the solution: Create a file called sidebar-left.php. In this file, you will need to add your rendered HTML, something like ...


1

I would not try to get too tricky and hide pages from users. What happens if they try to create a page with the same slug? I think it would just create confusion and more problems than it would solve. When you create the pages, store their IDs, not slug. Let users then change those through your options screen. This is similar to how WordPress tracks your ...


0

You could create a custom post type of "Static Pages" that do not allow you to update the titles. remove_meta_box( 'post_title' , 'your_custom_post_type', 'normal' ); remove_meta_box( 'slugdiv' , 'your_custom_post_type', 'normal' ); Then add in your static pages programmatically with wp_insert_post(); and force the slug and post_title to what you want. ...


0

try to use a new WP_Query, when you use get_posts you're using the main WP_Query this has hooks that other plugins can use to alter the query. something else i saw is that you're using include key which is not valid $my_query = new WP_Query( array( 'post__in' => array( 1633, 1634, 1635 ), 'post_status' => 'any', 'post_type' => ...


1

You can try the Theme Test Drive plugin to help you preview a development copy of your theme while a live site is still fully functional. Assuming it's the same theme you are working on (as it sounds like it) - you can copy the existing theme to a new theme folder, and just change the Theme Name value in the style.css in the development copy... then ...


5

Yes it is. It might get a bit clearer if you re-format this line $title .= " $sep " . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) ); to: $title .= " $sep "; $title .= sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) ); The first parameter of sprintf expects a format which is here the return value of the __ function. The second ...


0

you don't need to edit functions.php (moreover don't edit this line or it will break the localisation of the theme, because arcade, is the code used to know where to search translations) according to the line you read in functions.php, you have to put fr_CA.mo and fr_CA.po in wp-content/themes/arcade-basic/library/languages


1

The style_loader_src filter is used to modify/filter the src (url) of a stylesheet. The function callback accepts two parameters, the first is the original src and the second the handler of the stylesheet. The handler is the first parameter of wp_enqueue_style() used to enqueue the stylesheet. So, to replace a stylsheet source with another one you should ...


1

The best way to customize a navigation menu is to use a custom 'walker' function.. Here are the steps how to achieve the customization that you want! Create a "wp-custom-nav-walker.php" file in your theme directory for a new custom 'walker' class. Extend the Walker_Nav_Menu class and copy the class' function that you want to modify and override it in the ...


0

I recently extended a child theme from tips and tricks for the twenty fifteen theme and i thought i should share how you can move the sidebar to the right with you guys. in the extended child theme i removed the sidebar completely from the twenty fifteen theme as some people prefer to use it that way. You can download the child theme here and change the code ...


0

First off, jquery is most likely already enqueued by the main theme. But if not, the proper way is to call wp_enqueue_script('jquery') in a function for the action hook wp_enqueue_scripts. Example: function enqueue_jquery() { wp_enqueue_script('jquery'); } add_action('wp_enqueue_scripts', 'enqueue_jquery'). This code would need to be added to the ...


1

There are a few steps you need to take to add menus, the wordpress way. Register the menu in functions.php using register_nav_menus() Codex Link: https://codex.wordpress.org/Function_Reference/register_nav_menus Example: register_nav_menus( array( 'my_custom_menu' => 'My Custom menu', 'my_other_menu' => 'My Other Menu', ) ); Now you ...



Top 50 recent answers are included