Forum Replies Created
-
AuthorPosts
-
chrisman
MemberTurns out I incorrectly formatted the line with single and double quotes.
chrisman
MemberI've made progress but now I get a function that doesn't return a value. In my functions.php file, I have code that re-creates the wordpress loop for my blog home page with my blog excerpts. I'm able to add my code to have the featured image as a background image. Everything works correctly when I test it, EXCEPT, the genesis_get_image function doesn't return anything. Here is the portion of the code that's just for the loop:
/** Custom loop **/ function btm_custom_loop() { if ( have_posts() ) : do_action( 'genesis_before_while' ); while ( have_posts() ) : the_post(); do_action( 'genesis_before_entry' ); printf( '<article %s>', genesis_attr( 'entry' ) ); printf( '<div %s>', genesis_attr( 'entry-content' ) ); $image = genesis_get_image( 'format=url' ); echo '<div class="post-hero" style="background-image: url("' . $image . '")>'; echo '<div class="wrap">'; echo genesis_do_post_title(); echo '</div>'; echo '</div>'; echo the_excerpt_max_charlength(200); //change amount of characters to display echo '</div>'; do_action( 'genesis_after_entry_content' ); do_action( 'genesis_entry_footer' ); echo '</article>'; do_action( 'genesis_after_entry' ); endwhile; //* end of one post do_action( 'genesis_after_endwhile' ); else : //* if no posts exist do_action( 'genesis_loop_else' ); endif; //* end loop } } }
chrisman
MemberObviously I'm confused about what to call the blog home page...when it's not really the home page because that's the front page. [driven to madness]
chrisman
MemberGoDaddy is the last place you want to host a web site. I'd focus on moving it elsewhere and then going from there. WPEngine and StudioPress Sites are two great places. Also avoid BlueHost or any company under the umbrella of Endurance International Group (EIG). I used to use Hostgator as my primary host, a few years ago and as soon as they were bought by EIG, the quality of support and the support times plummeted.
chrisman
Memberchrisman
MemberThanks so much. Never would have guessed that!
chrisman
Member...from the genesis theme's readme file:
By default WordPress will create a default thumbnail image for each image you upload and the size can be specified in your dashboard under Settings > Media. In addition, the News child theme creates the following thumbnail images you'll see below, which are defined (and can be modified) in the functions.php file. These are the recommended thumbnail sizes that are used on the News child theme demo site.chrisman
MemberNever mind, I'm working on a solution based partially on this:
http://blackhillswebworks.com/2013/05/10/how-to-replace-the-studiopress-background-header-image-with-a-real-image-logo/chrisman
MemberGreat! I'm testing it out and it's really close to what I need. I'm sure i can get it from here. thanks!
chrisman
MemberBrad, I'm trying to use a shortcode in the Archive Intro Text field for a category. In a post I read from you, you mentioned (confirmed) that that particular field doesn't accept shortcodes. I have a wordpress plugin that creates my newsletter forms which I use via shortcode. Therefore, for me to get the newsletter form to appear before only one specific category, I can't use the Archive Intro Text.
This means I have to create a category template. I want everything to appear like the normal category listing except, for this category, the intro text plus a form should be displayed on the first page of the category.
As this point, i have created a category-[slug].php file.
<?php /* Template Name: category-church_audio_101 */ add_action('genesis_before_content', 'custom_church_audio_101'); function custom_church_audio_101() { if ($paged < 2 ) { echo "[unique category intro text / form here]" } } genesis(); ?>
But don't I need to have all of the loop code in there somewhere?
chrisman
MemberThe heights are not static. They are dependent on the contents. DIV's aren't like table columns. Set the image in the left (3/4's) column so anything in the right column will be the same or smaller. You've have to do this by creating the image at the right height.
chrisman
MemberYou'll find that here:
#sidebar .widget, #sidebar-alt .widget { border-bottom: 1px solid #D5D5D5; }
Learn to use firebug for firefox and css work will be a piece of cake! 🙂
chrisman
MemberI use this plugin without any problems. My settings are close to this post as described by my host. It's one of those things I have been able to set and forget.
chrisman
MemberThat bit of CSS fixed it!
chrisman
MemberI found this, now I'll try implementing it...
"Not sure if this applies to all themes or not but this is the css I used to get images with captions (and the captions themselves to resize properly..."
.wp-caption,
.wp-caption-text {
max-width: 97.5%;
height: auto;
width: auto9; /* ie8 */
}chrisman
MemberOk, that works but that's weird as both posts (their images) have height and width defined. Maybe there is a standard size like 300x200 and has special css references. I'll have to look into that but that's for giving me some direction.
-
AuthorPosts