cdils

Forum Replies Created

Viewing 15 posts - 391 through 405 (of 411 total)
  • Author
    Posts
  • in reply to: wordpress SEO – date / author archives #12735

    cdils
    Participant
    Post count: 421

    Oh yes, functions.php can be a dangerous place to play! I recommend having FTP up and running so you can dash in and manually remove anything from the file in case of emergency.

    StudioPress themes are great enough without customizations, but if you ever get the itch (and you just might!), it’s a lot of fun to get in there and tinker.

    Until then,

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: wordpress SEO – date / author archives #12732

    cdils
    Participant
    Post count: 421

    Yep, you got it! If you’re on a single-author blog, then the author archives just look like a duplicate of your regular archive. Disabling that eliminates any perceived duplicate content by a search engine.

    I’m not an SEO expert, but I don’t think there’s any harm in leaving your regular archive page (what you see on a 404) as is. But of course, it’s always nice to customize. :)


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: wordpress SEO – date / author archives #12729

    cdils
    Participant
    Post count: 421

    The plugin disables those specific archive pages (author.php and date.php), it does not remove references to those pages from archive.php (That can get confusing! You might find the template hierarchy helpful – http://codex.wordpress.org/Template_Hierarchy)

    In short, the SEO plugin took access to those pages out of the mix, but since they’re part of the Genesis archive template (archive.php), you’ll need to customize via one of the options above.


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Education theme – hide tags and categories from visitors #12711

    cdils
    Participant
    Post count: 421

    Once you throw an error in functions.php, it’s impossible to edit any further in the WP dashboard. You’ll need to access the file via FTP and remove the code that way. That should reset you.

    Before adding in this code, make sure you remove your previous code so it doesn’t throw another error. :)

    Not directly related, but still helpful… You might like this article (http://surefirewebservices.com/wordpress/how-to-use-remove_action-with-conditional-tags). It explains the why of using functions.


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Taxonomy Images #12671

    cdils
    Participant
    Post count: 421

    You can use wp_get_attachment_image to grab the image associated with your taxonomy. It might look like this:

    wp_get_attachment_image( $term->image_id, ‘thumbnail’ )

    So, incorporated into your $post_meta it would work like this:

    $post_meta = ‘[post_terms before="Bucket Rating: " taxonomy="rating"]‘ . wp_get_attachment_image( $term->image_id, ‘thumbnail’ ) . ‘more stuff’;

    Note that $terms is the name of a particular taxonomy. You can set that variable dynamically if you’re looping through multiple taxonomies or hardcode it.

    Experiment with it and let me know if that sets you in the right direction.

    Cheers,
    carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Education theme – hide tags and categories from visitors #12662

    cdils
    Participant
    Post count: 421

    Hi there,

    You’ll need to use the genesis_post_meta filter. Try something like this in your functions.php. You’ll notice it’s basically your same code above, but it needs to be wrapped in a function and read in via a filter.

    /** Customize the post meta function */
    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    if ( is_user_logged_in() ) {
        $post_meta = '[post_categories] // [post_tags]';
        return $post_meta;
    }}


    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: How to remove pagination in category archive pages #12660

    cdils
    Participant
    Post count: 421

    You might be able to try something like this:

    /** Remove Pagination from post type archives **/
    add_action('parse_query', 'cd_nopaging');
    function cd_nopaging($query) {
        if (is_post_type_archive()) {
            $query->set('nopaging', 1);
        }
    }

    You can reference the WordPress Codex in case is_post_type_archive() isn’t the right conditional check for your case.

    http://codex.wordpress.org/Conditional_Tags

    Cheers,

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Remove link from Pretty Pictures header? #12659

    cdils
    Participant
    Post count: 421

    You can use the genesis_seo_ title filter to remove the link. Here’s an example:

    http://www.briangardner.com/code/customize-header-url/


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: wordpress SEO – date / author archives #12658

    cdils
    Participant
    Post count: 421

    Hi Laura,

    That is the default behavior for the archive template to show those elements. You can work around it by creating a custom archive template or try out the Genesis 404 Page plugin.

    Cheers,

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Site for an Animal Resuce in Tampa, FL #9298

    cdils
    Participant
    Post count: 421

    Looks great Robert. Love the search filtering drop-downs for the taxonomies. Slick!


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Using backstrech #8961

    cdils
    Participant
    Post count: 421

    Hi, I’m not sure where to go from here. Let me see if I can get someone to help.


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Using backstrech #8646

    cdils
    Participant
    Post count: 421

    There’s basically three components:

    Add the javascript files to your site.
    Call in those scripts via your site’s functions.php
    Add in custom styling for your featured slider in stylesheet.css

    1. You’ll need to download backstretch.js and include it with your theme files – upload it to wp-content/themes/minimum/js or wherever you want. There’s an additional script used in Stretch called backstretch-set.js. Here’s a link for that code: https://gist.github.com/4424049.

    2. From there you’ll need to call those scripts in via your theme’s function.php file. Here’s an example of how it’s being called in from the Stretch theme:

    /** Load Backstretch script and prepare images for loading */
    add_action( 'wp_enqueue_scripts', 'stretch_enqueue_scripts' );
    function stretch_enqueue_scripts() {
    wp_enqueue_script( 'stretch-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0', true );     

         wp_enqueue_script( 'stretch-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'stretch-backstretch' ), '1.0.0', true );
    }

    /** You’ll need to customize this bit  below**/

    add_action( ‘genesis_after_post’, ‘stretch_set_background_image’ );
    function stretch_set_background_image() {

    $image = array( ‘src’ => has_post_thumbnail() ? genesis_get_image( array( ‘format’ => ‘url’ ) ) : genesis_get_option( ‘stretch_default_image’ ) );
    wp_localize_script( ‘stretch-backstretch-set’, ‘BackStretchImg’, $image );
    }

    Make sure the file path in the function above matches wherever you added backstretch.js and backstretch-set.js. There a function in the the Minimum theme’s function.php called function minimum_featured_image() and that’s where your featured slider is probably being called in (unless you’ve customized it a different way). You’ll need to modify that function to mimic function stretch_set_background_image().

    3. Lastly, you’ll need to apply some CSS to your theme’s stylesheet.css for those divs containing your featured slider. Keep in mind the Stretch theme is using a static image versus a slider, so there will be some differences.


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Using backstrech #8606

    cdils
    Participant
    Post count: 421

    The Stretch theme is calling in the background stretch scripts from functions.php. The actual styling is taking place in stylesheet.css.

    What are the “scripts and code” you have found? Are they from the original Stretch theme?


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Using backstrech #8469

    cdils
    Participant
    Post count: 421

    Hi there,

    Can you post a link to your site so I can see what you currently have?

    Cheers,

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    in reply to: Different Sidebar on a CPT Archive Index Page #7013

    cdils
    Participant
    Post count: 421

    Hi Lucas,

    Try creating a regular ole Page and setting it to use your archive-tips.php template. There’s a dropdown box on the page where you can select which sidebar you want to use – no extra code needed. :)

    The code you’re referencing above would be if you wanted to specify the sidebar with code alone and no template (archive-tips.php).

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

Viewing 15 posts - 391 through 405 (of 411 total)