• Resolved dmitriy8720

    (@dmitriy8720)


    Hello everyone, how to transfer the lines keywords, link rel = “canonical, otherwise everything goes in one line, in the source code?, Together with meta name =” description, but I need everything from a new line.
    As I understand it, the file aioseop_class.php is responsible for this, and I don’t know what to change there, I installed version 3.7.1

    		// Get the keywords.
    		$togglekeywords = 0;
    		if ( isset( $aioseop_options['aiosp_togglekeywords'] ) ) {
    			$togglekeywords = $aioseop_options['aiosp_togglekeywords'];
    		}
    		if ( $togglekeywords == 0 && ! ( is_front_page() && is_paged() ) ) {
    			$keywords = $this->get_main_keywords();
    			$keywords = $this->apply_cf_fields( $keywords );
    			$keywords = apply_filters( 'aioseop_keywords', $keywords );
    
    			if ( isset( $keywords ) && ! empty( $keywords ) ) {
    				if ( isset( $meta_string ) ) {
    					$meta_string .= "\n";
    				}
    				$keywords = wp_filter_nohtml_kses( str_replace( '"', '', $keywords ) );
    				$key_attr = apply_filters( 'aioseop_keywords_attributes', '' );
    				$meta_string .= sprintf( "<meta name=\"keywords\" %s content=\"%s\" />\n", $key_attr, $keywords );
    			}
    		}
    			$url = apply_filters( 'aioseop_canonical_url', $url );
    			if ( ! empty( $url ) ) {
    				echo '<link rel="canonical" href="' . esc_url( $url ) . '" />' . "\n";
    • This topic was modified 3 years, 9 months ago by dmitriy8720.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dmitriy8720

    (@dmitriy8720)

    Всем привет,как перенести строки keywords,link rel=”canonical,а то все идет в одну строку,в исходном коде?,вместе с meta name=”description,а мне надо,что бы все было с новой строки.
    Как я понял за это отвечает,файл aioseop_class.php,и что там менять,я не знаю,поставил версию 3.7.1,в последнее версии,все стоит как надо,с новой строки.

    • This reply was modified 3 years, 9 months ago by dmitriy8720.
    • This reply was modified 3 years, 9 months ago by dmitriy8720.
    • This reply was modified 3 years, 9 months ago by dmitriy8720.
    Plugin Support Steve M

    (@wpsmort)

    @dmitriy8720 All in One SEO puts everything on separate lines and always has. You don’t need to change any code for this to happen.

    If you’re seeing code wrapping onto the same line then this could be caused by a performance plugin that does minification.

    Thread Starter dmitriy8720

    (@dmitriy8720)

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make line breaks keywords, link rel = “canonical ?’ is closed to new replies.