[Resolved] Add categories tags on feature images and blog layout.

Home Forums Support [Resolved] Add categories tags on feature images and blog layout.

Home Forums Support Add categories tags on feature images and blog layout.

Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • #1009223
    An Nguyen

    Hi David,

    Thanks David, it’s perfect. I can adjust CSS a bit to fix with my current layout.

    Could you help me to add a big fullstop sign to separate each part of metadata please? I have no idea to do this.

    An.

    #1009624
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I’m not too sure what you mean – do you have any examples you can show us?

    #1009626
    An Nguyen

    Hi Tom,

    I can handle it. Thanks Tom & David!

    #1010071
    Tom
    Lead Developer
    Lead Developer

    No problem ๐Ÿ™‚

    #1020351
    An Nguyen

    Hi Tom & David,

    During test process, I found an issue in mobile mode. The category-tags displays wrong in mobile mode, but it’s perfect on desktop. I don’t know why so I need your help.

    I used this code below to display cat-tags below image. In mobile mode, if the title is long as 2 lines following with title is long as 1 line. The error happens and the tags will overlap the bottom-border of image a bit. Normally, it below it a bit and above title 10px.

    /* Postiion cat links below image */
    .generate-columns-container .inside-article {
        position: relative;
    }
    .generate-columns-container footer.entry-meta {
        position: absolute;
        top: 55%;
        bottom: 45%;
        left: -20px;
        margin-top: 0;
    }
    /* Adjust for mobile padding */
    @media (max-width: 768px) {
    	.generate-columns-container .entry-title {
    		margin: 30px -20px 30px;
    	}
    	.generate-columns-container .entry-meta {
        	padding: 10px 10px 0;
    		margin: 0 0px 10px;
    	}
        .blog h2.entry-title,
    	.archive h2.entry-title {
    		font-size: 21px;    
    	}
    }
    #1020847
    David
    Staff
    Customer Support

    Little confused – the original code we provided was to place the cat tags over the image – roughly top right – is this no longer required?

    #1020925
    An Nguyen

    Hi David,

    I adjusted your code above a bit, I used top, left – float attribute to move cat-tag to under image only.

    .generate-columns-container footer.entry-meta {
        position: absolute;
        top: 55%;
        left: -20px;
        margin-top: 0;
    }

    Thanks David.

    #1021359
    Tom
    Lead Developer
    Lead Developer

    There isn’t really a way to fix that using absolute positioning.

    What you could try is removing that CSS:

    .generate-columns-container footer.entry-meta {
        position: absolute;
        top: 55%;
        left: -20px;
        margin-top: 0;
    }

    Then physically moving the categories below the featured image:

    add_action( 'wp', function() {
        if ( ! is_singular() ) {
            remove_action( 'generate_after_entry_content', 'generate_footer_meta' );
            add_action( 'generate_before_content', 'generate_footer_meta', 15 );
        }
    } );
    #1021363
    An Nguyen

    Hi Tom,

    This code was added, but cat-tags move below the title. I expected that they move below feature-image and above title.

    Thanks

    #1021366
    Tom
    Lead Developer
    Lead Developer

    Sorry about that, I just updated the function above.

    #1021398
    An Nguyen

    Hi Tom,

    They display perfectly. Now, I only adjust them by css a bit.

    It’s a perfect solution. I really like it.

    Thanks.

    #1021553
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 12 posts - 31 through 42 (of 42 total)
  • You must be logged in to reply to this topic.