• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

alistairmckenzie

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 28 total)
1 2 →
  • Author
    Posts
  • November 10, 2017 at 4:32 am in reply to: Workstation Pro + Password Protected Product #213445
    alistairmckenzie
    Member

    Sorry should have posted I fixed it, thanks anyway

    January 18, 2017 at 3:29 pm in reply to: Featured image not being hard cropped #199629
    alistairmckenzie
    Member

    I think I've been overthinking this and I've managed to achieve the result that I wanted.

    For other peoples reference I just changed:

    function custom_featured_image() {
    $img = genesis_get_image( array( 'format' => 'html', 'size' => genesis_get_option( 'home-news' ), 'attr' => array( 'class' => 'alignnone post-image' ) ) );
    printf( '<a href="%s" title="%s">%s	</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img );
    }

    To a much simpler version, this:

    function custom_featured_image() {
    	echo '<div class="news-featured-image">';	
    		the_post_thumbnail('home-news');
    	echo '</div>';
    }

    The downside is that this way the image doesn't link to the post but I don't require that anymore.

    It would be nice if someone could help amend the above to include the 'alt' tag because that is missing?

    January 18, 2017 at 10:49 am in reply to: Featured image not being hard cropped #199616
    alistairmckenzie
    Member

    Yes they are being generated in the image directory at the 280px 280px size. I think it is a problem with the function I've used to show the image because this is the output on the page:

    <img width="767" height="850" src="http://thewebsiteaddress.co.uk/mytheme/wp-content/uploads/2016/10/theimage.jpg" class="alignnone post-image" alt="" srcset="thewebsiteaddress.co.uk/mytheme/wp-content/uploads/2016/10/theimage.jpg 767w, http://thewebsiteaddress.co.uk/mytheme/wp-content/uploads/2016/10/theimage-271x300.jpg 271w" sizes="(max-width: 767px) 100vw, 767px">

    So it appears that this is where it is going wrong and I need to correct the function in my original posts that outputs the image to the page. It obviously isn't using the 'home-news' size.

    January 18, 2017 at 8:04 am in reply to: Featured image not being hard cropped #199605
    alistairmckenzie
    Member

    Hi Victor, I've already tried regenerating the thumbnails but that unfortunately didn't work 🙁

    November 18, 2015 at 3:08 am in reply to: Switch Theme #171398
    alistairmckenzie
    Member
    This reply has been marked as private.
    October 26, 2015 at 9:01 am in reply to: Change Whole Site css on referring url #169039
    alistairmckenzie
    Member

    OK cheers Brad I'll give it a go

    October 26, 2015 at 8:44 am in reply to: Change Whole Site css on referring url #169037
    alistairmckenzie
    Member

    Thanks brad, but really all I want to do is if some one comes to Site B from SIte A I want to use style1.css instead of style.css or if they come to site B from site C it will use style2.css does that make sense if they come from any other site it will just remain style.css

    October 22, 2015 at 6:03 am in reply to: Widget area priority or Z-Index #168756
    alistairmckenzie
    Member

    Spot on thank you Victor

    September 1, 2015 at 8:49 am in reply to: Cafe Pro Responsive Menu #164220
    alistairmckenzie
    Member

    I bagged it off and used shiftnav instead

    August 19, 2015 at 3:27 am in reply to: Cafe Pro Responsive Menu #162817
    alistairmckenzie
    Member
    This reply has been marked as private.
    June 11, 2015 at 7:54 am in reply to: Altitude Pro – Full page slider? #155844
    alistairmckenzie
    Member

    Looks full page to me

    June 11, 2015 at 4:41 am in reply to: Altitude Pro – Full page slider? #155825
    alistairmckenzie
    Member

    Maybe the numbers wrong change from:

    Original File:

    //* Add markup for front page widgets
    function altitude_front_page_widgets() {

    genesis_widget_area( 'front-page-1', array(
    'before' => '<div id="front-page-1" class="front-page-1"><div
    class="image-section"><div class="flexible-widgets widget-area' .
    altitude_widget_area_class( 'front-page-1' ) . '"><div class="wrap">',
    'after' => '</div></div></div></div>',
    ) );

    to New

    //* Add markup for front page widgets
    function altitude_front_page_widgets() {

    echo '<div id="front-page-1"><div class="wrap">';
    genesis_widget_area( 'front-page-1', array( 'before' => '<div
    class="front-page-1 widget-area">', ) );
    echo '</div></div>';

    Try the above its only the front page 1 and make sure you dont leave the
    trailing ) ); in before the next widget area Alistair

    June 11, 2015 at 2:46 am in reply to: Altitude Pro – Full page slider? #155817
    alistairmckenzie
    Member

    HI pairfum i did the following and it worked for me it might not be perfect but it works see below:

    I altered the front-page.php line 72 and changed the front-page-1 to the below and then added my slider into the Front Page 1 widget area hope it works for you

    //* Add markup for front page widgets
    function altitude_front_page_widgets() {

    echo ‘<div id=”front-page-1″><div class=”wrap”>';
    genesis_widget_area( ‘front-page-1′, array( ‘before’ => ‘<div class=”front-page-1 widget-area”>’, ) );
    echo ‘</div></div>';

    April 13, 2015 at 9:50 am in reply to: Altitude Pro add slider instead of Background image #147727
    alistairmckenzie
    Member

    OK I sorted it myself and it works for me I altered the front-page.php line 72 and changed the front-page-1 to the below and then added my slider into the Front Page 1 widget area hope it works for you

    //* Add markup for front page widgets
    function altitude_front_page_widgets() {

    echo '<div id="front-page-1"><div class="wrap">';
    genesis_widget_area( 'front-page-1', array( 'before' => '<div class="front-page-1 widget-area">', ) );
    echo '</div></div>';

    April 2, 2015 at 4:42 am in reply to: Altitude Pro – Full page slider? #146435
    alistairmckenzie
    Member

    I would like to do the same thing if anybody has the answer

    January 16, 2015 at 4:41 am in reply to: CPT Page Titles on Archive #137646
    alistairmckenzie
    Member

    Incase anybody else wants to know fixed it in the CPT as below:

    /** Create portfolio custom post type post_type_name */
    add_action( 'init', 'create_custom_post_type' );
    function create_custom_post_type() {
    register_post_type( 'post_type_name',
    array(
    'labels' => array(
    'name' => __( 'post_type_name', 'Theme_name' ),
    'singular_name' => __( 'post_type_name', 'Theme_name' ),
    ),
    'has_archive' => true,
    'hierarchical' => true,
    'public' => true,
    'rewrite' => array( 'slug' => 'post_type_name' ),
    'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'genesis-seo', 'genesis-cpt-archives-settings' ),
    )
    );
    }

    function add_portfolio_page_title() {
    if ( is_post_type_archive( 'post_type_name' ) )
    echo '<div class="entry-header-wrapper"><h1>Your Page Title Here</h1><div class="wrap">';
    };
    add_action('genesis_after_header', 'add_portfolio_page_title');

    // Add featured image to CPT post_type_name
    function feature_image_header() {
    if( is_singular('post_type_name') && has_post_thumbnail()) {

    genesis_image(
    array(
    'size' => 'single-post',
    'attr' => array( 'class' => 'alignleft' )
    ) );
    }
    }

    October 7, 2014 at 4:46 am in reply to: Woocommerce Update 2.2.4 #126973
    alistairmckenzie
    Member

    Your a star worked a treat thanks to Tony Eppright as well

    September 29, 2014 at 7:39 am in reply to: woocommerce product image sizes not correct with Beautiful child theme #126146
    alistairmckenzie
    Member

    I have the same issue, I haven't got a fix as yet but think it is something to do with the latest version of woocommerce it doesn't seem compatible with Genesis Connect for woo commerce

    April 12, 2014 at 7:37 am in reply to: Add Sidebar into content woocommerce #99787
    alistairmckenzie
    Member

    Tried that al it does is remove the primary sidebar altogether which obviously isn't what I want

    March 6, 2014 at 10:13 am in reply to: Adding extra section into Parallax Pro #93679
    alistairmckenzie
    Member

    Its ok I have sorted it

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 28 total)
1 2 →

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble