Forum Replies Created

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • in reply to: Portfolio Page in Boxed Format #63204

    Really, guys??? Three weeks with no reply? I’m not asking you about a complex coding problem or asking for a new feature. I’m reporting a problem.

    in reply to: Navigation label font #60894

    Try adding this to your custom.css file:

    .menu-item {
    font-size: 10px;
    }

    Don’t forget to reset the size (and whatever else you may want to restyle) to your liking.

    in reply to: Featured image definition by category or other wpquery stuff #60709

    Actually, it only displays a fallback thumbnail if there are no Avia featured images set on the post or page that comes up in the search results. If you try this link, you’ll see that the one post that actually has those images set uses the content image while the rest use the fallback. That’s because I’m still very early in the redesign process of that site. There are only a few posts there that currently have the Avia or even WordPress featured images set. There are still several thousand to go through and restyle for the new site. I’ve been putting that part off while I finish getting the navigation and shopping cart working the way I want them.

    in reply to: Featured image definition by category or other wpquery stuff #60707

    Actually, I figured out a fairly easy fix. I posted it on another thread. It seems to be a fairly common complaint.

    in reply to: Thumbnail without showing photo in content area #60797

    This is the second time I’ve heard someone asking about this same problem in the last few days. Then I checked my search results and discovered the same blank SPANs on the left with no images, and I didn’t like it either. My solution, for what it’s worth, was to create a 48×48 pixel image–I used a stylized version of the station logo–to use as a default fallback for when there are no images. Personally, I think that this is an option that should be added to the Avia framework. Anyway, here’s how I did it:

    Open the loop-search.php file in the BroadScope includes folder and find the following code:

    if( is_array($slides) && !empty( $slides[0]['slideshow_image'] ) )
    {
    $image = avia_image_by_id($slides[0]['slideshow_image'], 'widget', 'image');
    }

    Add this code right below it:

    else
    {
    $image = '<img src="http://www.example.com/wp-content/uploads/default.jpg" width="48" height="48" alt="Insert appropriate ALT text." />';
    }

    The result will look something like this:

    if( is_array($slides) && !empty( $slides[0]['slideshow_image'] ) )
    {
    $image = avia_image_by_id($slides[0]['slideshow_image'], 'widget', 'image');
    }
    else
    {
    $image = '<img src="http://www.example.com/path/to/image/default.jpg" width="48" height="48" alt="Insert appropriate ALT text." />';
    }

    Be sure to replace the image URL, path, and name along with the ALT text to work for your image. You might want to change the same code in the class-framework-widgets.php file in the framework/php folder as well. Hope this helps.

    in reply to: Featured image definition by category or other wpquery stuff #60705

    If you find out, I’d like to know too. The only ways that I can think of off-hand are to either use the the_post_thumbnail() WordPress function to pull the featured image set by WordPress, tap into the Avia framework to pull one of the Avia-assigned featured images, or create a default, fall-back image to use when there is no image.

    in reply to: Themed Landing Pages in BroadScope #60099

    Okay, I’m an idiot. I showed this post to a friend of mine who also creates websites. He looked at it for about ten seconds and then said, “Why don’t you just use the important! declaration? Then you don’t have to do all that other stuff.” He was right, of course. You can just leave all the BroadScope theme options as they are and jump right to the easy way using the WordPress built-in body_class() function. Doh!

    Just find the WordPress page ID number for the page you want themed, use it to replace the “XXX” in the example below, place it in your custom.css file, make whatever style changes you want, save it, and upload it to the web server.

    body.page-id-XXX {
    background-color: #FFFFFF !important;
    background-image: url(http://www.example.com/wp-content/uploads/my-new-themed-background.jpg) !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    }

    in reply to: Omit megaWrapper div #58050

    No problem. We’re all just trying to make a living here. For me, a good theme (like BroadScope) is just a handy framework to start building with. All the cool, built-in tools and shortcodes are a nice bonus that lightens my work a little. That’s not bad for just $35.

    Anyway, to expand my previous answer a little beyond your basic question, the wp_nav_menu function has a number of other parameters that will probably help you out with what you’re trying to do. Since we used “container => false” to eliminate the DIV container altogether, you can wrap that wp_nav_menu PHP in your own DIV with whatever ID and/or CLASS you’d like. Then you can use the $menu_class and $items_wrap parameters to override the UL and other classes inside the menu. The tools are there to restructure it anyway you like.

    in reply to: Omit megaWrapper div #58047

    Your question got me thinking, because I’m going to be adding a separate nav menu to my footer. I started by changing this code in the functions.php file:

    /* Activate native wordpress navigation menu and register a menu location */

    add_theme_support('nav_menus');
    register_nav_menu('avia', THEMENAME.' Main Menu');

    to this:

    /* Activate native wordpress navigation menu and register a menu location */

    register_nav_menus(array('avia' => THEMENAME.' Main Menu', 'my_footer_menu' => 'Footer Menu'));

    since my footer menu is brilliantly named “Footer Menu” and the add_theme_support call isn’t necessary in either version. I then added this code:

    <?php
    wp_nav_menu( array( container => false, 'menu' => 'Footer Menu' ) );
    ?>

    to the footer.php file right below the last footer widget. It eliminates the megaWrapper DIV but still leaves the avia_mega class on the menu’s UL container. Still, I think that answers your question. Hope this helps.

    in reply to: Homepage Slider with Latest Post Images #59027

    One other thing I forgot about. You have to add the following code to the functions.php file to make use of WordPress thumbnail images even though you’re actually using the full size image here.

    /* Activate native WordPress Post Thumbnails */

    if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
    }

    in reply to: Latest Posts In Specific Category #58988

    One other thing I forgot about. You have to add the following code to the functions.php file to make use of WordPress thumbnail images.

    /* Activate native WordPress Post Thumbnails */

    if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
    }

    in reply to: Homepage Slider with Latest Post Images #59026

    Thanks. You’re absolutely right. I knew it would turn out to be something stupid. I was trying to get_posts with $args before it was even defined. Not only that, but I had residual code left over from my original version when I was just pulling one post at a time–hence the offset counter. Here’s the now working version that doesn’t require a separate plugin to get the right category.

    <?php
    if (is_home('')) :
    echo "<div class='container_wrap' id='featured'><div class='container slideshow_container'><ul class='slideshow'>";
    global $post;
    $container_counter = 1;
    $category_number = 8;
    $args = array( 'numberposts' => 3, 'category' => $category_number );
    $myposts = get_posts( $args );
    foreach( $myposts as $post ) : setup_postdata($post);
    $postid = get_the_ID();
    $bg_color_key = 'newslide_bg_color';
    $slide_back_color = get_post_meta($postid, $bg_color_key, true);
    echo "<li class='featured featured_container".$container_counter."' style='background: ".$slide_back_color."'>";
    echo "<a href='";
    echo the_permalink();
    echo "' title='";
    echo the_title();
    echo "'>";
    echo the_post_thumbnail('full');
    echo "</a><div class='feature_excerpt'><h1><a href='";
    echo the_permalink();
    echo "' title='";
    echo the_title();
    echo "'>";
    echo the_title();
    echo "</a></h1><div class='featured_caption'>";
    echo the_excerpt();
    echo "</div></div></li>";
    $container_counter = $container_counter + 1;
    endforeach;
    echo "</ul><span class='shadow-top'></span><span class='shadow-bottom'></span></div></div>";
    else :
    echo "<div class='container_wrap' id='featured'>";
    echo "<div class='container slideshow_container'>";
    echo avia_inc_display_featured();
    echo "</div>";
    echo "</div>";
    endif;
    ?>

    in reply to: Homepage Slider with Latest Post Images #59024

    Well, crud. I’ve already hit a snag with this code. It should limit the posts pulled to category number 8. Instead, it’s pulling the latest three posts from any category. I’m having to use the Ultimate Category Excluder plugin to keep the posts in other categories off the main page. Does anyone have any idea why it’s not filtering by category properly?

    in reply to: Overriding Narrow MegaMenu Columns #59423

    No problem. :)

    in reply to: Latest Posts In Specific Category #58986

    Thanks, I always forget about backticks.

    in reply to: Latest Posts In Specific Category #58984

    Apparently, that code just won’t display here. I’ve uploaded it to here. Maybe some admin can get it to post correctly.

    in reply to: Latest Posts In Specific Category #58983

    For some reason, part of the code was stripped from that comment. I’ll try it again.

    <?php

    global $post;

    $args = array( 'numberposts' => 1, 'offset' => 0, 'category' => 4 );

    $myposts = get_posts( $args );

    foreach( $myposts as $post ) : setup_postdata($post); ?>

    [box type="alert"]"><?php the_title(); ?>[/box]

    <?php if ( has_post_thumbnail()) : ?>

    " title="<?php the_title_attribute(); ?>" >

    <?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?>

    <?php endif; ?>

    <?php the_excerpt(); ?>

    <?php endforeach; ?>

    in reply to: Setting Home Page Problem #57617

    Just to update anyone else that might be searching for the solution to this same problem, I was on the wrong testing server. The PHP on that server was version 5.1.6 and therefore only supported WordPress up to version 3.0.2. As soon as I migrated over to the correct testing server with newer PHP and WP, it worked just fine. The WordPress Reading setting doesn’t have to be changed to a static page. The Frontpage setting for BroadScope works fine all by itself.

    And Chris Beard deserves a special thank you for going above and beyond to try and help me out. Thanks, Chris.

    in reply to: Setting Home Page Problem #57615

    I’ve set up the page I want to use as the home page. (http://www.test.soptv.org/southern-oregon-public-television-soptv/) I’ve set that as the front page under frontpage settings. Still, when I go to the root directory (http://www.test.soptv.org/), I get nothing. If I go to the WordPress settings under Reading and set any page at all as the static home page–including the one I want–the root directory turns into the blog page. It’s very annoying.

    If no one else has any suggestions and I can’t work it our on my own, then I may take you up on your very generous offer. Thanks.

Viewing 19 posts - 1 through 19 (of 19 total)