Home>Support>Page title problem

Page title problem

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

I am ripping my hair out now. I am currently updating the design of my site (as you may have noticed by all my threads) and have run into some problems. Firstly, the headline of the page that is number two from the left on the menu was in a different font weight and size than the rest. When I went in to check, that was because it was a widget that did the headline. I can’t have a widget like that from the page builder on all my pages, so I tried to remove the headlines of all pages.

The problem is that the menu item gets renamed on all of the relevant pages except for the one that is number two from the left. There is also a space between the menu and the text in the two pages without the title in the menu. How do I make it the same?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 2 months ago Private Message - Tor André Sandum

    This is a private message.

  2. 10 years, 2 months ago Private Message - Tor André Sandum

    This is a private message.

  3. 10 years, 2 months ago Daniel
    Hi, I Work Here

    Hi Tor

    You can change this with some custom CSS. If you navigate to Appearance > Custom CSS, you’ll get our custom CSS editor. Just add the following code.

    #page-title, article.post .entry-header h1.entry-title, article.page .entry-header h1.entry-title{
        font-family: "Roboto" !important;
        font-size: 1.5em !important;
      
    }
    

    Try that out

    Cheers

  4. 10 years, 2 months ago Private Message - Tor André Sandum

    This is a private message.

  5. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Hey Tor :)

    If something has a grey background it means only we can see it, I’ve used a private shortcode, just a FYI.

    On this page: Private Snippet why don’t you rather use the normal page title, this page over here Private Snippet is using the normal page title. This could get tricky to manage.

    Summary:

    Link one above: Creating its page heading in Page Builder.
    Link two above: Using the regular page heading.

    Can we perhaps use the regular page heading across the site and then make changes to that as required? The regular page heading is editable from the Customizer.

  6. 10 years, 2 months ago Tor André Sandum

    Superb, let’s do that! But the problem is that even though I have the page names in both pages, the headlines does not show up (second and third menu option). As I mentioned, I might have removed them somehow, but I can’t quite remember how or where?

    :)

  7. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Thanks for the update Tor. On this page Private Snippet, please check the page template drop down menu in the right column. I think it’s set to Page Builder Home, try set that to Full Width instead.

  8. 10 years, 2 months ago Tor André Sandum

    That absolutely did the trick! Thank you so much! :)

  9. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Awesome :) Glad to hear that helped. All the best.

  10. 10 years, 2 months ago Private Message - Tor André Sandum

    This is a private message.

  11. 10 years, 2 months ago Tor André Sandum

    I have a filter in my functions that probably has the blame… Probably due to an update? Commenting out this makes it work when it comes to the byline, but then the text “av” gets changed back to “by”:

    add_filter( 'vantage_post_on_parts', 'child_parts' );
    function child_parts(){
    	return array(
    		'',
    		'<span class="byline"> av <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>'
    		);
    }
    
  12. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Hi Tor

    You can drop the entire function into your child theme functions.php and make changes from there:

    if ( ! function_exists( 'vantage_posted_on' ) ) :
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     *
     * @since vantage 1.0
     */
    function vantage_posted_on() {
    	$posted_on_parts = array(
    		'on' => __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><time class="updated" datetime="%5$s">%6$s</time>', 'vantage'),
    		'by' => __( '<span class="byline"> by <span class="author vcard"><a class="url fn n" href="%7$s" title="%8$s" rel="author">%9$s</a></span></span>', 'vantage' ),
    	);
    	$posted_on_parts = apply_filters('vantage_post_on_parts', $posted_on_parts);
    
    
    	$posted_on = sprintf( implode(' ', $posted_on_parts),
    		esc_url( get_permalink() ),
    		esc_attr( get_the_time() ),
    		esc_attr( get_the_date( 'c' ) ),
    		apply_filters('vantage_post_on_date', esc_html( get_the_date() )),
    		esc_attr( get_the_modified_date( 'c' ) ),
    		esc_html( get_the_modified_date() ),
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'vantage' ), get_the_author() ) ),
    		get_the_author()
    	);
    	echo apply_filters('vantage_posted_on', $posted_on);
    }
    endif;
    
  13. 10 years, 2 months ago Tor André Sandum

    Worked like a charm!

    Also, the navigation at the bottom does not look good. The page you are on are not aligned with the other page. Can I also change the text from “Next” to “Neste” and “Previous” to “Forrige”?

    Also, inside the post (see link above) you can see that the author byline is a link, and not the authors name. I have not found any way to get the name of the author to show.

    And, sorry for rambling, if possible – is there any way to add the social sharing buttons on the bottom of the (see link above) page to also be on the top? That way people can like and share from both the bottom and the top.

  14. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Not quite sure what you mean by the navigation doesn’t look good. If you explain a bit more I can try help.

    At this point you might consider translating Vantage to your language, that’s one way to change the Next/Previous text, for more on that see:

    You could also just drop this function into your child theme functions.php and translate the strings that way:

    if ( ! function_exists( 'vantage_content_nav' ) ) :
    /**
     * Display navigation to next/previous pages when applicable
     *
     * @since vantage 1.0
     */
    function vantage_content_nav( $nav_id ) {
    	if( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'infinite-scroll' ) ) {
    		return;
    	}
    	global $wp_query, $post;
    
    	// Don't print empty markup on single pages if there's nowhere to navigate.
    	if ( is_single() ) {
    		$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );
    		$next = get_adjacent_post( false, '', false );
    
    		if ( ! $next && ! $previous )
    			return;
    	}
    
    	// Don't print empty markup in archives if there's only one page.
    	if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) )
    		return;
    
    	// Add the shorten title filter
    	add_filter('the_title', 'vantage_content_nav_shorten_title');
    
    	$nav_class = 'site-navigation paging-navigation';
    	if ( is_single() )
    		$nav_class = 'site-navigation post-navigation';
    
    	?>
    	<nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo $nav_class; ?>">
    		<h1 class="assistive-text"><?php _e( 'Post navigation', 'vantage' ); ?></h1>
    
    	<?php if ( is_single() ) : // navigation links for single posts ?>
    
    		<div class="single-nav-wrapper">
    			<?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'vantage' ) . '</span> %title' ); ?>
    			<?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'vantage' ) . '</span>' ); ?>
    		</div>
    
    	<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
    
    		<?php vantage_pagination() ?>
    
    	<?php endif; ?>
    
    	</nav><!-- #<?php echo esc_html( $nav_id ); ?> -->
    	<?php
    
    	// Remove the shorten title filter
    	remove_filter('the_title', 'vantage_content_nav_shorten_title');
    }
    endif; // vantage_content_nav
    

    Moving the social sharing links might be a bit beyond what we can help with here. They are outputted from the premium/functions.php file using the vantage_entry_main_bottom action hook. That hook is found at the bottom of content-single.php. Perhaps look for a plugin solution to insert new sharing icons at the top of the post.

  15. 10 years, 2 months ago Tor André Sandum

    I’m sorry, I don’t actually see what I should replace in that code to get “Next” to become “Neste” and “Previous” to become “Forrige”.

    What I meant about the other stuff was that there are three articles per row, and a new page generates before the last row is “filled up” with articles? There is only one article on the last row, but the user has the option to navigate to a new page. About the navigation, the page you are viewing (for example the [1]) is not aligned with the other pages (for example [2] [3] etc..). It is higher up on the page :)

    Thank you!

  16. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Apologies, that is indeed the wrong function. This is the correct function:

    if( !function_exists( 'vantage_pagination' ) ) :
    /**
     * Display the pagination
     *
     * @param string $pages
     * @param int $range
     */
    function vantage_pagination($pages = '', $range = 2) {
    
    	$showitems = ($range * 2)+1;
    
    	global $wp_query, $wp_rewrite;
    	$paged = $wp_query->get('paged');
    	if(empty($paged)) $paged = 1;
    
    	if($pages == '') {
    		global $wp_query;
    		$pages = $wp_query->max_num_pages;
    		if(!$pages) $pages = 1;
    	}
    
    	if(1 != $pages) {
    		$format_permalink = substr( get_pagenum_link(false), -1, 1 ) == '/' ? 'page/%#%/' : '/page/%#%/';
    		$format_query_string = strpos(get_pagenum_link(false), '?') === false ? '?paged=%#%' : '&paged=%#%';
    
    		echo "<div class='pagination'>";
    		echo paginate_links( array(
    			'total' => $pages,
    			'current' => $paged,
    			'mid_size' => $showitems,
    			'format' => ( $wp_rewrite->permalink_structure == '' || is_search() ) ? $format_query_string : $format_permalink,
    			'base' => get_pagenum_link(false).'%_%',
    			'prev_text' => __('« Previous'),
    			'next_text' => __('Next »'),
    		) );
    		echo "</div>\n";
    	}
    }
    endif;
    

    The original doesn’t list previous or next, I’ve added those keys to the array. Instead of using this function above you could also change your WordPress core lang setting at Settings > General, Next and Previous should be automatically translated then.

    Please try the following to help the pagination problem:

    /* Pagination */
    
    .pagination a {
    vertical-align: top;
    }
    
  17. 10 years, 2 months ago Tor André Sandum

    Perfect, thank you! I seriously don’t know what I would have done without you! So glad I bought this theme!

    But the last remaining thing is the problem that a new page is generated before the last one is “filled up” if you understand? Now it displays 10 posts before generating a new page. It should display 9 or 12 to get it to look right, if you know what I mean? I have searched Google for how to change this to no avail.

    Can I add a simple filter in my functions to fix this? :)

  18. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    No problem, glad we could help out. You can set the number of posts per page at Settings > Reading from your main WordPress menu. Hope that helps.

  19. 10 years, 2 months ago Tor André Sandum

    Of course, now I feel stupid!

    Thank you!

  20. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Not a commonly used core setting so really easy to miss, lots of users do :)

    Chat soon.

    Cheers

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More