magazine pro

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  Kellylise 3 months, 4 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #116162

    bandj
    Participant
    Post count: 189

    magazine pro uses a jquery script to find time for each entry and move it inside the image link. What would I change if I wanted the category instead of the time? Or if not a category, a tag?

    jQuery(function( $ ){

    // add js body class
    $(‘body’).addClass(‘js’);

    // find time for each entry and move it inside the image link
    $(‘.home-middle article, .home-top article’).each(function(){
    var $time = $(this).find(‘.entry-time’);

    $(this).find(‘a.alignleft, a.alignnone, a.alignright’).append($time);

    });

    });


    http://dogloverzdaily.com/
    #116168

    Kellylise
    Participant
    Post count: 480
    #116387

    bandj
    Participant
    Post count: 189

    1. Change the js file to this and notice where you have to put “categories”

    jQuery(function( $ ){

    // add js body class
    $(‘body’).addClass(‘js’);

    // find time for each entry and move it inside the image link
    $(‘.home-middle article, .home-top article’).each(function(){
    var $time = $(this).find(‘.entry-categories’);

    $(this).find(‘a.alignleft, a.alignnone, a.alignright’).append($time);

    });

    });

    2. In the featured post widget where it says show post title show post info, in the box below add this

    [post_categories before=""]

    mine now looks like this: [post_date] By [post_author_posts_link] [post_comments] [post_categories before=""]. The 2 quotes at the end eliminates the words “filed under”. You can add text between the quotes.

    3. In your css where you find

    .js .content .home-middle a .entry-time,
    .js .content .home-top a .entry-time

    Add this:

    .js .content .home-middle a .entry-categories,
    .js .content .home-top a .entry-categories

    Then add this in your css also for font color

    .js .content .home-middle a .entry-categories a,
    .js .content .home-top a .entry-categories a {
    color: #fff;
    }

    We can thank Amelia Briscoe Technical Support Advocate for this as we went through a few emails to get this right.


    #116416

    Andrea Rennick
    Keymaster
    Post count: 1368

    Just a note that we don’t normally hand out this amount of code in Support. Amelia happened to have dealt with this situation before, with a previous client.


    **forum signature**
    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

    Twitterholic

    #116420

    Kellylise
    Participant
    Post count: 480

    Hi Andrea:
    I can certainly understand why not.

    However, for this topic – it is a feature of Magazine Pro itself – and not mere customization.

    The date overlayed on featured posts is great.

    But if your site is static-content driven and not date driven, that Magazine Pro feature is a problem. For static content, overlaying the category makes a lot more sense.

    And now that we have the code – it’s all good!

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

You must be logged in to reply to this topic.