Andrew Misplon

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 2,550 total)
  • Author
    Posts
  • in reply to: put categories into the normal post meta #13244

    Andrew Misplon
    Keymaster

    Glad to hear you’ve made progress.

    in reply to: put categories into the normal post meta #13239

    Andrew Misplon
    Keymaster

    You’ll need to provide significantly more feedback for me to assist.

    in reply to: put categories into the normal post meta #13237

    Andrew Misplon
    Keymaster

    Don’t copy the function from email, view this topic here on the forum and copy the function from the forum. Alternatively, copy the function from PasteBin: https://pastebin.com/raw/1SJHx2c2

    in reply to: put categories into the normal post meta #13236

    Andrew Misplon
    Keymaster

    Hi

    Go to Plugins > Add New, search for and install a plugin called Code Snippets.

    Next, go to Snippets > Add New, name the snippet as you’d like and enter into the snippet body:

    if ( ! function_exists( 'polestar_post_meta' ) ) :
    /**
     * Print HTML with meta information for the sticky status, current post-date/time, author, comment count and post categories.
     */
    function polestar_post_meta() {
    	if ( ( is_home() || is_archive() || is_search() ) && get_theme_mod( 'post_date', true ) ) {
    		echo '<span class="entry-date"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark"><time class="published" datetime="' . esc_attr( get_the_date( 'c' ) ) . '">' . esc_html( get_the_date() ) . '</time><time class="updated" datetime="' . esc_attr( get_the_modified_date( 'c' ) ) . '">' . esc_html( get_the_modified_date() ) . '</time></span></a>';
    	}
    
    	if ( is_single() && get_theme_mod( 'post_date', true ) ) {
    		echo '<span class="entry-date"><time class="published" datetime="' . esc_attr( get_the_date( 'c' ) ) . '">' . esc_html( get_the_date() ) . '</time><time class="updated" datetime="' . esc_attr( get_the_modified_date( 'c' ) ) . '">' . esc_html( get_the_modified_date() ) . '</time></span>';
    	}
    	
    	/* translators: used between list items, there is a space after the comma */
    	$categories_list = get_the_category_list( esc_html__( ', ', 'polestar' ) );
    	if ( $categories_list ) {
    		/* translators: 1: list of categories. */
    		printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'polestar' ) . '</span>', $categories_list ); // WPCS: XSS OK.
    	}	
    
    	if ( get_theme_mod( 'post_author', true ) ) {
    		echo '<span class="byline"><span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" rel="author">' . esc_html( get_the_author() ) . '</a></span></span>';
    	}
    
    	if ( comments_open() && get_theme_mod( 'post_comment_count', true ) ) { 
    		echo '<span class="comments-link">';
    		comments_popup_link( esc_html__( 'Leave a comment', 'polestar' ), esc_html__( 'One Comment', 'polestar' ), esc_html__( '% Comments', 'polestar' ) );
    		echo '</span>';
    	}
    }
    endif;

    Change “Posted in” to the language of your choice.

    Enable “Only run on site front-end”, finally click Save changes and activate.

    in reply to: Hide header on scroll down, show on scroll up #13234

    Andrew Misplon
    Keymaster

    Super, glad to hear that helps.

    Thanks for your feedback. If I’m able to develop this further into a theme setting, I’ll certainly keep you updated.

    Cheers for now 🙂

    in reply to: Hide header on scroll down, show on scroll up #13229

    Andrew Misplon
    Keymaster

    When trying this snippet out it’s best to deactivate the theme’s Sticky Header setting at Customize > Theme Settings > Header.

    Header

    Thanks

    in reply to: Hide header on scroll down, show on scroll up #13228

    Andrew Misplon
    Keymaster

    Hi again

    You can try the following snippet. Right click and save as to download the file to your desktop. To make use of the file, got to Plugins > Add New, search for and install a plugin called Code Snippets. Once activated, go to Snippets > Import to import this file. Ensure the snippet is set to run on the site front-end, save and activate.

    This snippet isn’t perfect, it currently isn’t offset for the WordPress admin toolbar and doesn’t currently work well with the Polestar one page scrolling functionality. Whether or not this is a problem will depend on how you’re using Polestar.

    Let me know how it goes. Thanks.

    in reply to: Hide header on scroll down, show on scroll up #13221

    Andrew Misplon
    Keymaster

    Hi 🙂

    Thanks for your question and feedback.

    This would need to be done using JavaScript. I’ll take a look and come back to you during the week, hopefully with a solution.

    Chat further then.

    in reply to: Mixed themes #13220

    Andrew Misplon
    Keymaster

    No worries 🙂 I’m really glad to hear you were able to resolve the issue.

    in reply to: Mixed themes #13217

    Andrew Misplon
    Keymaster

    Ahh, ok, The site is experiencing technical difficulties is the error.

    There is a more detailed error message available but you’d need to enable debug to see that.

    Here is how you can enable WP_DEBUG to view the error: https://www.wpbeginner.com/wp-tutorials/how-to-set-up-wordpress-error-logs-in-wp-config/.

    Alternatively, you can login to your server via FTP or Hosting File Manager and navigate to /wp-content/themes/ and delete the theme folder you just activated.

    The steps you outlined shouldn’t have caused this though.

    in reply to: Mixed themes #13216

    Andrew Misplon
    Keymaster

    Hi Tricia, what’s the error message?

    in reply to: Drop Down menu not working on desktop view after update #13207

    Andrew Misplon
    Keymaster

    Super, I’m really glad to hear you’re making progress, that’s great news.

    If you’d like to leave a review, you could so here: https://wordpress.org/support/theme/ultra/reviews/#new-post. Thanks for your support 🙂

    in reply to: Drop Down menu not working on desktop view after update #13202

    Andrew Misplon
    Keymaster

    In your Custom CSS, locate .main-navigation ul ul and remove the declaration display: none; This is for the first site in your list. Give that a try and let me know how it goes. Thanks.

    in reply to: Drop Down menu not working on desktop view after update #13201

    Andrew Misplon
    Keymaster

    Hi Bruno

    Thanks for opening a new topic. Often each challenge is a little different to the next one which is why it’s helpful to work a challenge per topic.

    I have a glance at one of your pages, the issue resolved when I removed your Custom CSS. Let me take another look and try to come back to you with a little more information.

    in reply to: Drop Down menu no longer working #13198

    Andrew Misplon
    Keymaster

    Hi Bruno

    Thanks for reaching out and for your support.

    When you have a moment, please, could you open a new topic using the form at the bottom of this page: https://purothemes.com/support/forum/ultra-theme/.

Viewing 15 posts - 1 through 15 (of 2,550 total)
Scroll to top