Final Debugging of a Completed Complex Minimum Site

Community Forums Forums Design Tips and Tricks Final Debugging of a Completed Complex Minimum Site

This topic is: not resolved

This topic contains 12 replies, has 3 voices, and was last updated by  eluviis 1 year, 5 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #32958

    eluviis
    Participant
    Post count: 115

    Ok, the new Minimum redesign of my site has been up for 2-3 weeks now. In that time, I’ve made a couple of tweaks and squashed a few bugs… But I have more to clear.

    The site is http://RallyWays.com

    I’ve been noticing a lot of traffic coming from this forum. I hope I’m inspiring a lot of people. This site has been a huge labor of love. Just be original, don’t copy all my code, Lol!

    I’d really appreciate if you could help me out with a few of the issues – some simple, some not so simple. Here we go…

    1. Mobile responsiveness and captions. Mobile responsiveness works really well in Minimum 2, for both photos and text. However, I did notice…it does not work with captioned images. What gives? I’d understand if it were a rare custom feature, but it’s a native WordPress thing. How can I make captioned images mobile responsive? This is very important. They look chopped in half in iPhone.

    2. Custom post types and Genesis/Minimum – The site has 3 custom post types. After tweaking the code throughout the minimum child theme files I made it so that most of the Minimum and Genesis features work with the custom post types. However, there are still some problems:

    a. The Genesis post meta information will not display “Filed under:” in custom post types. No matter what taxonomy I use, it just displays “File Under: BLANK” This article is a perfect example: http://rallyways.com/specialty/the-new-rallyways-mazda-mx5-miata-na/ – NOTE, the custom post type “Specialty” is the only custom type to use a taxonomy. The taxonomy is called “cars” and this posts “cars” category is “Mazda MX-5 Miata”. Unfortunately, it displays as “Uncategorized”.

    b. Post meta information will however show the tags used in custom post type posts. Great. But when you click on any of those tags, the posts displayed are ONLY those in the native WordPress post type. The custom post types posts tagged will simply not display in the tag archive pages. What gives?

    c. I installed an email newsletter signup box at the end of posts using Brian Gardner’s tutorial here: http://www.briangardner.com/email-newsletter-signup-box/ and Brandon @Kraft ‘s Genesis eNews Extended Plugin here: http://wordpress.org/extend/plugins/genesis-enews-extended/ – Well, needless to say, the plugin will load on native WordPress posts but not on custom post types. For example, my Quickblog custom post type: http://rallyways.com/quickblog/aston-martin-db9-from-cars-and-coffee-irvine/ – Won’t load there.

    I have added the custom post type to the php that’s supposed to display the eNews widget, like this: if ( is_singular( ‘post’, ‘quickblog’ ) ) – (Notice “quickblog”, but it still won’t load. I wonder if the plugin is at fault. I know the code in functions.php is good, or partially good, because it works fine in regular posts: http://rallyways.com/2124/lamborghini-newport-beach-super-car-show-photos/

    3. Insert Ad with hook. Seeing as Minimum 2.0′s main content column is 740px wide, I realized I can add a Google Adsense 728px Leaderboard ad in there. Great. So, I’d like to put the ad at the end of every post using a hook. Can you please recommend some code, or a tutorial with code to do this? I know it’s simple, but I’m not a PHP coder, so it always takes me a few hours to dissect it. I’d prefer not using Genesis Simple Hooks, and rather put the code in functions.php. Thanks.

    I think that is the bulk of what I need fixed. Ultimately, I’d like to debug everything. I’m sure there are things that could be fixed to work better given the complexity of running 3 extra custom post types. I’m happy to pay somebody to work with me on this. @Kraft – hint, hint. Let me know if you are interested.

    Regards,
    Danny

    #32965

    Kraft
    Participant
    Post count: 87

    Hey Danny,

    I have a big client meeting in the morning to launch a new site. Okay if I check this out tomorrow evening?

    My first thought thought re is_singular and the quickblog, have you tried doing it like this:
    is_singular(array( 'post', 'quickpost' )); (just trying to clear out maybe easy things first!)


    Brandon Kraft
    Volunteer
    Blog | Twitter
    Genesis eNews Extended Support

    #32966

    braddalton
    Participant
    Post count: 9782

    3. Change the content hook location if needed because you have an after post widget already.

    I think you need to change the conditional tag as well and maybe use an i.d rather than a name for the custom post type.


    #32974

    eluviis
    Participant
    Post count: 115

    @kraft- no worries man. When you have time.
    @braddalton – I’ll try that I report back. Thanks.

    #32975

    braddalton
    Participant
    Post count: 9782

    Did you try this conditional tag for post types [php]if ( ‘quickblog’ == get_post_type() )[/php]


    #32977

    eluviis
    Participant
    Post count: 115

    @braddalton – No, I havent. Remember, I don’t code from scratch. I put pieces together to make it all work. I’m a designer, not a coder :s So, I understand what that means, but wouldn’t know exactly where to put it unless I can see the rest of the code that somewhat should go around it.

    For example, to tackle that, I would go into the functions.php and other other functions files and try to find similar code to what I’m trying to do. Then see how I can stick that line of code were I need it by duplicating something. Then, by trial and error I get it sorted.

    I know, it’s messy and it takes forever, but I don’t know how to code. :(

    #32979

    braddalton
    Participant
    Post count: 9782

    How did you create the custom post type?


    #33131

    eluviis
    Participant
    Post count: 115

    @braddalton – I used the plugin, Easy Custom Content Types by Pippin’s Plugins to create all 3 of the custom types, and one custom taxonomy. It really is a great plugin. I had considered custom post types for a long time, but never found a good solution that I could use on my own until I found this plugin. Someone recommend it on here.

    #33136

    braddalton
    Participant
    Post count: 9782

    The reason eNews doesn’t load on custom post types is because the code to add the widget includes a conditional tag for single posts only which don’t include cutom post types.

    You’ll need to add the above code i pasted to the conditional statement so it also outputs the eNews widget on custom post types.

    What exact code are you using?

    This?
    [php]
    add_action( ‘genesis_after_post_content’, ‘custom_add_newsletter_box’ );
    function custom_add_newsletter_box() {
    if ( is_singular( ‘post’ ) )
    genesis_widget_area( ‘newsletter’, array(
    ‘before’ => ‘<div id="newsletter">’,
    ) );
    }
    [/php]


    #33140

    braddalton
    Participant
    Post count: 9782

    What happens if you change the conditional tag from [php] is_singular to is_single[/php]?


    #33150

    eluviis
    Participant
    Post count: 115

    Hi Brad,

    I’m using this:

    add_action( ‘genesis_after_post_content’, ‘custom_add_newsletter_box’ );
    function custom_add_newsletter_box() {
    if ( is_singular( ‘post’, ‘quickblog’ ) )
    genesis_widget_area( ‘newsletter’, array(
    ‘before’ => ‘<div id=”enews widget-area”>’,
    ) );

    I tried changing is_singular to is_single and it breaks. Making that change will not display the form anywhere. It even disappears from the native posts.

    #33160

    braddalton
    Participant
    Post count: 9782

    You’d need to add the conditional for the custom post type which requires me to install the plugin, create the custom post type and test the code using the same theme.


    #33165

    eluviis
    Participant
    Post count: 115

    This might have been too many topics for one post. Dang not knowing enough PHP! O.o :(

    About the banner ad.

    I added your code for the banner ad…

    function wpsites_after_single_post_banner() {
    if ( is_single() ) {
    echo ‘<div class=”afterpost-ads”> Add Your Google Banner Code here</div>’;
    }};
    add_action(‘genesis_after_post_content’, ‘wpsites_after_single_post_banner’);

    and it works, but I’m turning it off for a bit to tweak it. I only want the add on “posts”, “quickblog” With this code it’s even showing in portfolio pages.

    Also, why can’t I use the same hook as I’m using for the subscribe form? It displays fine, in the order that they are on functions.php. I mean, I need to add a bit of CSS to add some padding and what not around the ad, but that’s about it. I got it to display between the Subscribe box and the author box. (I’m turning it off for a bit until I find a solution to have it display only on posts and quickblog.

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

You must be logged in to reply to this topic.