Is there a way to upgrade a theme without losing custom templates?
Child themes might be your best bet.
Child themes might be your best bet.
One option would be to display screenshots of the theme in action. Many theme services allow you to view a “demo page” and see how the theme is presented – taking a screenshot of this page and passing it to your client is pretty much the same as presenting a stylized wireframe or stylistic mockup … Read more
HTML markup can be generated in several ways: directly included in theme’s template files; generated by template tags in templates; generated by native or plugin functions attached to hooks. From quick look at this specific theme’s code I found this: array( “name” => “Socialize Icons”, “desc” => “Enter Links to Your Twitter, Facebook, and RSS … Read more
As mentioned by @Michael in his answer the theme has to support the Post Thumbnail functionality. All you need to do for it is to put this line into the theme’s function.php file: add_theme_support( ‘post-thumbnails’ ); There’s a good chance it’s there already, so search first. Now you only need to output the image somehow. … Read more
What you’re looking for is git submodules: Git’s submodule support allows a repository to contain, as a subdirectory, a checkout of an external project. PS: Always try to use the jQuery bundled with WordPress.
Think Twice I have to start by saying that this seems like a really odd idea. Having a front page that’s totally different from the rest of the site will break a lot of user expectations and cause confusion. Is it really two completely different themes or do you just want a custom layout on … Read more
set the $stripteaser parameter to true; the_content(‘readmore’, true); http://codex.wordpress.org/Function_Reference/the_content
Almost. Put the bootstrap stuff in your theme, and include it on the front end using wp_enqueue_style and wp_enqueue_script in functions.php e.g. for the bootstrap js: function my_scripts_method() { wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array(‘jquery’) ); } add_action(‘wp_enqueue_scripts’, ‘my_scripts_method’); And for bootstrap.css: add_action( ‘wp_enqueue_scripts’, ‘prefix_add_my_stylesheet’ ); function prefix_add_my_stylesheet() { // Respects SSL, Style.css is relative … Read more
If I come across the same kind of layout I normally set it up like follows: The banner is a slider, maybe supported by Custom Post Meta The three blocks in the middle are perfect for Widgets The content at the bottom can be the normal post content A customer can learn to use widgets … Read more
Put this lines of code in function.php if (function_exists(“register_sidebar”)) { register_sidebar(); } Put this to sidebar.php <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?> <?php $image = new WP_query (‘showposts=1’); if(have_posts()) : while($image->have_posts()) : $image->the_post; ?> <a href=”https://wordpress.stackexchange.com/questions/115901/<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php postimage(); ?></a> <?php endwhile; endif; rewind_posts; ?>