*Few changes for Sparkle*

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

This topic contains 6 replies, has 3 voices, and was last updated by  fredbros 2 years, 1 month ago.

  • Author
    Posts
  • #4944

    fredbros
    Member
    Post count: 27

    Hi,

    As you recommended I open a topic as I need to make some changes on your fabulous template – just in case here my site: https://womenlovetech.com

    1. How to place the comments just at the end of the post and above the tags? I had a look at your different topics on your forum and find this code which doesn’t work on my site
    remove_action( ‘yt_after_loop_singular_post’,’yt_site_single_post_comment’);
    add_action( ‘yt_after_loop_singular_post’,’yt_site_single_post_comment’, 6);

    2. Your typography in theme options is amazing but a bit of a headache to use not knowing which one is – do you have a simple screenshot with typography reference this way you know which font to change?

    3. It seems I can’t control the font type and size in my widgets (not the tiles widgets) but the ‘mini’post titles and same problem with the post titles on the ‘you might also like’ section (not the title of you may also like)

    4. How can i add a pagination numeric on each category (e.g fashion) replacing the ‘old/newer entries’? I did it on the homepage – works perfectly but I couldn’t find the same option for categories.

    5. Is it possible in each single post to have the tags aligned with the title TAGS and not underneath?

    6. I would like to remove completely (in each category page) the top title (not the post icon for each post which on my site is the small pink) but the big one on top (e.g HEALTH)

    Sorry for asking so many questions, I know a bit of css but I have no idea about php.

    I would like to thank you for helping me previously with my logo and the comments.

    Again many thanks, when all done, I will definitely leave a very positive comment in themeforest 🙂

  • #4958

    Jacob
    Staff
    Post count: 2312

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #4968

    fredbros
    Member
    Post count: 27

    Hi,

    You are welcome to use my site in your Sparkle page, and thank you for the compliment.

    1. the code works but the comment section is still under the author and tags – is it possible to have the comments just after the end of the article? https://womenlovetech.com/yosemite/

    2. yes i read your documentation

    3. please give me the custom css code to change the font size for the widgets post titles and for the posts in ‘you might also like’

    4. Great works perfectly thank you

    5. Great again all good

    6. yes I’m trying to remove Category Heading Title on each category pages (e.g https://womenlovetech.com/how-to/) i would like to remove the HOW TO in black (and the space with it) and I added the code in the custom css in styling options but it’s not working 🙁

    Also I would like to reduce the space between each post, (homepage, category pages), I wish I could send you a screenshot. I would like to reduce the space between each articles, is it possible.

    Many thanks 🙂

  • #4970

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #4975

    fredbros
    Member
    Post count: 27

    Hi Maxxi,

    Thank you for your custom CSS – all works perfectly 🙂 very happy.

    Now I have a serious problem with your code and Jacob’s for moving the comment section just at the end of each article – I added your php code at the end in the custom.functions.php and it crashed the site completely – (I use text edit) here my code with yours when the site crashes:

    remove_action( 'yt_inside_header','yt_site_primary_nav', 15 );
    
    add_action( 'yt_inside_header','yt_site_primary_nav10102014', 20);
    
    if ( ! function_exists( 'yt_site_primary_nav10102014' ) ) {
    	 
    	function yt_site_primary_nav10102014(){
    		$primary_menu = '';
    		//Navnav
    		if ( has_nav_menu( 'primary' ) ) {
    			$primary_menu = wp_nav_menu(
    				apply_filters( 'yt_site_primary_navigation_args', array( 
    					'theme_location' => 'primary' , 
    					'echo' => false, 
    					'container_class' => 'site-navigation-menu-container',
    					'menu_class'      => 'menu',
    					'depth' => 5,
    					'walker' => new YT_Walker_Nav_Mega_Menu_By_Category()
    				))
    			);
    		}else{
    			$primary_menu = '<ul class="menu"><li>' . sprintf( __('Create a Menu in <a href="%s">Menus</a> and assign it as Primary Menu in <a href="%s">Theme Location</a>', 'yeahthemes'), admin_url('nav-menus.php'), admin_url('nav-menus.php?action=locations') ) . '</li></ul>';
    		}
    		
    		$site_navigaton = '<nav id="site-navigation" class="col-sm-12 col-md-12 main-navigation" role="navigation">
    			<div class="sr-only skip-link"><a href="#content" title="' . esc_attr( 'Skip to content', 'yeahthemes' ) . '">' . __( 'Skip to content', 'yeahthemes' ) . '</a></div>
    
    			' . $primary_menu . '
    		</nav><!-- #site-navigation -->';
    		
    		//Allow editing site
    		$site_navigaton = yt_apply_atomic( 'site_primary_menu', $site_navigaton );
    		
    		echo $site_navigaton;
    	}
    }
    
    remove_action( 'yt_inside_header','yt_site_branding', 15);
    add_action( 'yt_inside_header','yt_site_branding09042014', 14); 
    
    function yt_site_branding09042014(){
    	
    	/**
    	 * Retrieve Options data
    	 */
    	$heading = is_home() ? 'h1' : 'h3';
    	
    
    	//Branding
    	$branding = '<div class="col-md-12 site-branding text-center">
    		<'.$heading.' class="site-logo plain-text-logo"><a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( yt_get_options('plain_logo_text') ) . '" rel="home">' . yt_get_options('plain_logo_text') . '</a></'.$heading.'>
    	</div>';
    	
    	if( !yt_get_options('plain_logo') && yt_get_options('logo') ){
    		$branding = '<div class="col-md-12 site-branding text-center">
    			<'.$heading.' class="site-logo image-logo" style="max-height:none;max-width:819px;display: inline-block;"><a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( yt_get_options('plain_logo_text') ) . '" rel="home"><span class="hidden">' . yt_get_options('plain_logo_text') . '</span><img alt="' . esc_attr( yt_get_options('plain_logo_text') ) . '" src="'. esc_url( yt_get_options('logo') ) .'" />' . '</a></'.$heading.'>
    		</div>';
    	}
    	
    	$branding = apply_filters( 'yt_site_branding', $branding );
    
    	echo $branding;
    	
    }
    
    remove_action( 'yt_after_loop_singular_post','yt_site_single_post_comment', 20);
    add_action( 'yt_before_single_post_entry_footer','yt_site_single_post_comment', 6);
    • This reply was modified 2 years, 1 month ago by  Jacob. Reason: Next time you would better to wrap your code inside code block!
    • This reply was modified 2 years, 1 month ago by  Jacob. Reason: Next time you would better to wrap your code inside code block!
  • #4994

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #5021

    fredbros
    Member
    Post count: 27

    works! there was an extra bracket – my fault, thx

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!