Community Forums › Forums › Archived Forums › Design Tips and Tricks › magazine pro
- This topic has 4 replies, 3 voices, and was last updated 11 years, 11 months ago by
DTHkelly.
-
AuthorPosts
-
July 28, 2014 at 6:11 pm #116162
bandj
Membermagazine 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/July 28, 2014 at 6:49 pm #116168July 30, 2014 at 5:32 pm #116387bandj
Member1. 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-timeAdd this:
.js .content .home-middle a .entry-categories,
.js .content .home-top a .entry-categoriesThen 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.
July 31, 2014 at 3:34 am #116416Andrea Rennick
MemberJust 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.
July 31, 2014 at 4:39 am #116420DTHkelly
MemberHi 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!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.