Chip Bennett
Forum Replies Created
-
Forum: Themes and Templates
In reply to: WidgetsIt appears that the Spun Theme only supports dynamic sidebars in the footer. Also, it appears that the design of that Theme is such that footer content isn’t visible unless/until you hover over it.
Your footer sidebars are working fine.
Look on your site, beneath the post images, but above the footer. You should see a plus sign. Hover over it, and you’ll see it has a black, circular background. Click it, and your sidebars will display.
Forum: Themes and Templates
In reply to: Child Theme: how to call on parent theme w/ out using "@import"An easier way would be to copy your theme’s header.php file in your Child Theme and then place in a <link> tag that retrieves the parent’s stylesheet. That’s what Google recommends instead of using the @import line too.
And the correct way to do that in WordPress is to enqueue the parent Theme’s style sheet.
In the child Theme’s
functions.php, add the following:function syrinx32123_enqueue_parent_style() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'syrinx32123_enqueue_parent_style' );Now, if you do that, you’ll want to enqueue the child Theme’s stylesheet after the parent Theme’s; so add this:
function syrinx32123_enqueue_child_style() { wp_enqueue_style( 'child-style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'syrinx32123_enqueue_child_style', 11 );(And don’t hard-code a
<link>in the child-Theme header for either stylesheet.)Forum: Themes and Templates
In reply to: WidgetsIt appears that the Spun Theme only supports dynamic sidebars in the footer. Also, it appears that the design of that Theme is such that footer content isn’t visible unless/until you hover over it.
Go to
Dashboard -> Appearance -> Widgets. What Widgets do you have assigned to each of the three sidebars (Sidebar 1, Sidebar 2, Sidebar 3)?Forum: Themes and Templates
In reply to: Problem with Arcadia Theme after installationHi cod3ex,
These support forums are intended for support only for Themes hosted in the official Theme directory.
As your Theme is a commercial Theme, you should seek support from the developer.
That site is distributing Themes that are not GPL or GPL-compatible, that put spammy links in your footer, that mis-apply the Creative Commons Attribution license clause to attempt to force you to display spam links in your footer, and that include encrypted kill code that prevents you from modifying the spam links in your footer.
Such sites should be avoided at all costs.
Get a better Theme here:
http://wordpress.org/extend/themesI’m sorry but your chosen theme is not released under GPL. Non GPL products are not supported in the official WordPress support forums.
I would also strongly recommend that you read this article and consider changing to a theme from a reputable source asap.
Forum: Themes and Templates
In reply to: Trouble Using template_redirect…and the entire site went blank white, no errors just blank.
Enable WP-DEBUG, and report back the fatal error(s).
Forum: Themes and Templates
In reply to: Trouble Using template_redirectTried your way chip, just made everything a white blank page, even the homepage
Which way did you try, and what fatal error(s) did you get?
Forum: Themes and Templates
In reply to: Trouble Using template_redirectWell, if you insist on using
template_redirect:function my_template() { if ( is_single() && in_category( get_cat_id( 'for-sale' ) ) ) { include ( get_template_directory() . '/salesposts.php' ); exit; } } add_action('template_redirect', 'my_template');Forum: Themes and Templates
In reply to: Only show the posts of that categoryBut what it now does; it shows Joe, Deer AND Cat.
That’s because you’ve modified the default loop, somehow.
Please post the loop code for
category.php.If it is this:
<?php $myposts = get_posts('numberposts=1000'); foreach($myposts as $post) :?> <div class="post"> <?php the_title(); ?> </div> <?php endforeach; ?>Please replace that with this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post"> <?php the_title(); ?> </div> <?php endwhile; endif; ?>Forum: Themes and Templates
In reply to: featured image in post titleThe width of the single column. That’s the same width as the embedded YouTube clip which is 700.
Okay, I’ll assume that you don’t care about height, but only width.
In that case, add the following to
functions.php:function stevenstallone_add_custom_image_size() { add_image_size( 'post-title', 700, 9999, false ); } add_action( 'after_setup_theme', 'stevenstallone_add_custom_image_size' );That function will register a custom, featured-image size. The 700 is the width, in pixels. The 9999 is height, in pixels. The
falseindicates that the cropping will be a “soft” crop, i.e. “box resize”: it will resize the image using the constraining dimension. So, if you have an image that is 1400x200px, it will be resized to 700x100px.But, just registering that size isn’t enough, as any already-uploaded images won’t have that size generated. So, you’ll need to regenerate thumbnails, e.g. via the Regenerate Thumbnails Plugin.
That Plugin will force WordPress to regenerate intermediate image sizes for all uploaded images. Afterward, you’ll be able to reference/use your custom image size.
Next, you need to modify the template. You were on the right track before:
<h2> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'post-title' ); } else { the_title(); } ?> </h2>Forum: Themes and Templates
In reply to: Theme create duplicate homepageBasically to have a static homepage,i have to create post and set it as a homepage.
By default, WordPress does not allow selection of posts as a static front page, but rather only pages can be selected as the static front page.
So, how are you selecting a post?
What Theme are you using? What Plugins do you have active?
Forum: Themes and Templates
In reply to: Only show the posts of that categoryI’m looking for the loop that only shows the post of that category that is chosen, nothing to do with template definitions.
WordPress does this automatically. For example, for category
foobar, the following URL will display all posts with thefoobarcategory:www.example.com/category/foobarWordPress will use the
category.phptemplate file to render this page. If you want to override the display for only thefoobarcategory, crate a template file namedcategory-foobar.php. (More information: Template Hierarchy: Category Display)If that doesn’t suit your needs, please provide more detail regarding what exactly you’re trying to accomplish.
Forum: Themes and Templates
In reply to: Pages displaying same contentcontent from posts
Content from what specific posts?
Forum: Themes and Templates
In reply to: Pages displaying same contentWhat (in human terms) are you wanting to display with this template file?