Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #713826

    Hey guys, dealing with a very challenging client.
    How difficult would it be to have the blog post tags at the base of each post, and not the top… https://js-interactive.com/tags.png

    Here is what their current site posts look like. Tags at the bottom: https://sunshineandreign.com/2016/08/savannah-tylers-arizona-elopement-arizona-wedding-photographers/

    Thanks

    #714810

    Hi Justin!

    I don’t think it would be that difficult, we can use custom js scripts to change it’s position. Just post to us a link to the page mentioned, as long as it’s using one of our themes we would be glad to help you with it :)

    Cheers!
    Nikko

    #714897

    Nikko, thanks! The login remains the same. See below …

    #715328

    Hey Justin,

    I have enabled Blog Post Tags in Enfold Child > Blog Layout. The tags now appear beneath the date. In you child theme, please create includes folder inside it create a new file called loop-index.php then add this code: http://pastebin.com/3CmppN4s

    Try to check the post after, let us know if it works :)

    Regards,
    Nikko

    #715479

    Nikko, this is fantastic….thank you!! Looks great!
    My only comment…looking at the style, the line-height is set to 1.0em for the tags, yet there appears to be a break of some sort that is leaving the line-spacing for the tags pretty large. How can I tighten that up? See the link, and the tags at the base of the post. Thank you.

    #715488

    Hi Justing

    Try to add this in Quick CSS:

    #top.single-post span.blog-tags.minor-meta {
        line-height: 1 !important;
    }

    Let us know if it works ;)

    Regards,
    Nikko

    #715535

    no change yet.

    #715587

    Hey!

    Justin, play around with the number and you will find out which one works perfevt got you, if you increase it it might work better.

    Thanks a lot

    Regards,
    Basilis

    #715590

    Disregard please… mt browser wasn’t caching correctly. Thank you :)

    #715608

    Hi!

    Can you post a screenshot on your end? I checked the site and the code I gave reflects properly on my end.

    Best regards,
    Nikko

    #716204

    Nikko, the client wants the categories at the bottom of the individial posts. Not just tags … any thoughts?

    #716690

    Hey!

    Please add this in the functions.php file.

    add_action('ava_after_content', function($id, $content) {
    	if(is_single()){
    		$categories = get_the_category();
    		$separator = ' ';
    		$output = '';
    		if ( ! empty( $categories ) ) {
    		    foreach( $categories as $category ) {
    		        $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '" alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
    		    }
    		    echo trim( $output, $separator );
    		}
    	}
    });

    Best regards,
    Ismael

    #1130067

    I too had a client who wanted the category tags repeated after post and I have used the code you supplied above.
    It is generated a ” warning missing argument 2 for {closure} ()
    On the first line. But the code is working. Just want to get rid of the warning.

    Thanks.

    #1130201

    Hi bodnikwebservices,

    Warnings should not affect the actual functionality of the code like you pointed out. Did you check if you have debug mode turned off on your installation? https://codex.wordpress.org/WP_DEBUG

    Best regards,
    Rikard

    #1131031

    the debug option in my wordpress cfg is set to off.
    Here is an image of the warning:
    warning pic

    The warning show sup on the single post and on the main blog page after each snipet entry.

    Any ideas what could be causing it?

    Thanks.

    #1131032

    Sorry that image didnt post well. Left it in the prvt section as a link.

    #1131160

    Hi,

    Edit the filter’s closing tag and define the number of variables or arguments that the hook should accept.

    		    echo trim( $output, $separator );
    		}
    	}
    });
    

    Replace it with:

    		    echo trim( $output, $separator );
    		}
    	}
    }, 10, 2);
    

    Or just set the WP_DISPLAY_DEBUG constant to false in the wp-config.php file to get rid of the warning.

    Best regards,
    Ismael

    #1131453

    Many thanks!

    All fixed. Great support.

    #1131469

    Hi,

    I’m glad this was resolved for you. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Blog tags on bottom of post’ is closed to new replies.