Forum Replies Created

Viewing 15 replies - 31 through 45 (of 89 total)
  • Thread Starter odie2

    (@odie2)

    Anyone?

    Thread Starter odie2

    (@odie2)

    Anyone?

    In Opera the same as Bjorn wrote.

    It don’t seems that you commented those.
    Especially that there are two instances of that:

    .cb-grid-5 img from screenshot and .cb-grid-5 img from @media only screen and (min-width: 768px)

    Also opacity in .cb-grid-5>div img and .cb-grid-5>div:hover img may be problem.

    Plugin Contributor odie2

    (@odie2)

    Hi,
    try latest version. It’s updated to Hyphenator.js 5.1.0

    What do you mean with “surface”? User interface?

    Greetings

    Hi,

    Maybe you just disabled it from menu with plugin like Adminize?

    Try access https://YOURSITE/wp-admin/admin.php?page=wpseo_dashboard.

    Maybe your server have problems with FTP at the moment (if free server it’s very often that you can’t install plugins, if localhost you need modify your wp-config.php).

    When you are uploading plugin manually, you first have to unzip it and upload just folder to /wp-content/plugins/ like others are.
    Yoast SEO should be in /wp-content/plugins/wordpress-seo/

    Greetings

    Are you sure? I can’t check it at the moment, but I think defaults should be set for older posts with no specific attributes set.

    Please check your posts’ source (Ctrl+U when reading post on website) for meta property="og: by Ctrl+F.
    If you are testing og tags with Facebook it may doesn’t showed you right tags if you linked that url before so Facebook already cached box with data in your browser (then try close each part o box and after some refresh it should be downloaded again).

    If it seems like problem with og tags in source, then you should ask on Yoast SEO’s forum are you can apply it to old posts. I am not using defaults descriptions or titles as I have always content in posts and pages, so I can’t tell you more.

    You could set default descriptions and title in Yoast SEO -> Social, however if social/search engine accept it, it depends from it (for example Google prefers get description automatically from your website instead read meta tag).

    Forum: Hacks
    In reply to: translate

    Hi,

    Where you have that anchor tag? In post’s content?

    If yes, try following:

    function my_text_strings ( $content ) {
    	$replace = __( 'NIS', 'text' );
    	$content = str_replace( 'BMX:', $replace, $content );
    	return $content;
    }
    
    add_filter( 'the_content', 'my_text_strings' );

    You could do more things with $replace to add statements etc.

    Note that you have to change 'text' domain to yours – for example twentyfourteen if you are using phrases from twentyfourteen/languages/ (directory name have nothing to domain’s name).

    If no, the easiest way is change filter’s target – 'the_content'.

    Greetings

    As I know you can’t have empty description, alternatively you could exclude description on Facebook when you are sharing url (by X button on hover).

    Also, it’s very bad for SEO and Accessibility that you have no text on site. For search engines and text readers your content just don’t exists.
    You should consider adding short note or at least alt attribute for images and sound.

    You could change description for Facebook, Google+ and Twitter with Yoast SEO plugin (in post’s edit you will have new box with 3 tabs – read more on official website).

    Thread Starter odie2

    (@odie2)

    Seems like it was WP-version bug.

    Thread Starter odie2

    (@odie2)

    Solution for future readers.

    index.php:

    global $query_string;
    $my_query = '';
    
    //Change it to number of posts that should appear on non-paginated main page
    $front_limit = 5;
    
    //I am not using sticky posts at all in main loop (only for slider), but haven't tested how it works with them, you could comment (add // on line start) and test
    $my_query .= '&ignore_sticky_posts=1';
    
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $posts_per_page = get_option('posts_per_page');
    
    $offset = ( is_paged() ? ( ($paged - 2) * $posts_per_page + $front_limit ) : 0 );
    $my_query .= '&offset='.$offset;
    $my_query .= '&paged='.$paged;
    
    if ( !is_paged() ) :
    	$my_query .= '&posts_per_page='.$front_limit;
    else :
    	if ( $paged == $wp_query->max_num_pages ) $posts_per_page += $front_limit;
    
    	$my_query .= '&posts_per_page='.$posts_per_page;
    endif;
    
    query_posts( $query_string . $my_query );

    Pagination (show number of pages properly), generally could be found in inc/template-tags.php, you should look for function like twentyfourteen_paging_nav(), then you have to add:

    global $front_limit; 
    
    	$total_posts = $wp_query->found_posts;
    	$posts_per_page = get_option('posts_per_page');
    	$page = get_query_var('paged');
    
    	if ( is_front_page() ) {
    		$args = array_merge( $wp_query->query_vars, array( 'showposts' => $posts_per_page ) );
    		query_posts( $args );
    	}
    
    	$total_pages = $wp_query->max_num_pages;

    before $something = paginate_links([...])

    Note: you may need change variables names in pagination to match those in paginate_links() args.

    Example for TwentyFourteen theme:

    if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
    /**
     * Display navigation to next/previous set of posts when applicable.
     *
     * @since Twenty Fourteen 1.0
     *
     * @global WP_Query   $wp_query   WordPress Query object.
     * @global WP_Rewrite $wp_rewrite WordPress Rewrite object.
     */
    function twentyfourteen_paging_nav() {
    	global $wp_query, $wp_rewrite;
    
    	// Don't print empty markup if there's only one page.
    	if ( $wp_query->max_num_pages < 2 ) {
    		return;
    	}
    
    	$paged        = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;
    	$pagenum_link = html_entity_decode( get_pagenum_link() );
    	$query_args   = array();
    	$url_parts    = explode( '?', $pagenum_link );
    
    	if ( isset( $url_parts[1] ) ) {
    		wp_parse_str( $url_parts[1], $query_args );
    	}
    
    	$pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link );
    	$pagenum_link = trailingslashit( $pagenum_link ) . '%_%';
    
    	$format  = $wp_rewrite->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : '';
    	$format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%';
    
    	global $front_limit; 
    
    	$total_posts = $wp_query->found_posts;
    	$posts_per_page = get_option('posts_per_page');
    	$page = get_query_var('paged');
    
    	if ( is_front_page() ) {
    		$args = array_merge( $wp_query->query_vars, array( 'showposts' => $posts_per_page ) );
    		query_posts( $args );
    	}
    
    	$total_pages = $wp_query->max_num_pages;
    
    	// Set up paginated links.
    	$links = paginate_links( array(
    		'base'     => $pagenum_link,
    		'format'   => $format,
    		'total'    => $total_pages,
    		'current'  => $paged,
    		'mid_size' => 1,
    		'add_args' => array_map( 'urlencode', $query_args ),
    		'prev_text' => __( '← Previous', 'twentyfourteen' ),
    		'next_text' => __( 'Next →', 'twentyfourteen' ),
    	) );
    
    	if ( $links ) :
    
    	?>
    	<nav class="navigation paging-navigation" role="navigation">
    		<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1>
    		<div class="pagination loop-pagination">
    			<?php echo $links; ?>
    		</div><!-- .pagination -->
    	</nav><!-- .navigation -->
    	<?php
    	endif;
    }
    endif;

    Thread Starter odie2

    (@odie2)

    Anyone?

    Thread Starter odie2

    (@odie2)

    For future readers, I added following to functions.php, but don’t tested deeply yet, but seems like working (also those child pages have properly canonical to /parent/child/ slug, so don’t worry about SEO):

    function rr_childpages_my_event() {
    	global $post;
    	if ( is_singular() && ! is_page() && $post->post_parent > 0 ) {
    		global $wp_query;
    		wp_redirect( get_permalink() );
    		//$wp_query->set_404();
    		//status_header(404);
    	}
    	return true;
    }
    add_action( 'wp', 'rr_childpages_my_event' );
    Thread Starter odie2

    (@odie2)

    Anyone?

    In every header you have URL of problematic file.

    For example:

    URI : https://stepoutbuffalo.com/wp-content/plugins/geodirectory/geodirectory-assets/css/gd_core_frontend.css?ver=1.4.9

    Where part after plugins is plugin’s slug:

    https://stepoutbuffalo.com/wp-content/plugins/geodirectory/geodirectory-assets/css/gd_core_frontend.css?ver=1.4.9

    So in this case problematic CSS is from GeoDirectory plugin.

Viewing 15 replies - 31 through 45 (of 89 total)