SEO Meta-Data... the very first thing on the header. | General - All in One SEO Pack Pro Forum | Support | Semper Plugins

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
SEO Meta-Data... the very first thing on the header.
December 31, 2014
8:05 am
Avatar
karincom
Member
Guests
Forum Posts: 4
Member Since:
December 31, 2014
sp_UserOfflineSmall Offline

Dear “SEO All In One Pack” Development Team:

                             Thanks for the effort of developing this plugin.

Some people think it is good that SEO meta-data goes the very first thing in the header (it is difficult to have clean headers, more with all man in the middle -CDN- and third party additional stuff):

http://classofbeginner.blogspo…..o-top.html

Some other people think “it doesn’t matter”:

http://semperfiwebdesign.com/f…..-seo-code/

Why not allow theme designers to choose this option?

My experience is according with Rahman Kurnia experience:
“Generaly SEO Meta Data of a plugin seo is under the meta link, external stylesheets and even under pile of lines of the external scripts. This causes seo meta data of the plugin should wait a turn most behind to read by bots. As a result there are few external script links that get indexed, because meta data read after the external script lines.”

In my case, some .js are used as description even with proper SEO meta-data, no idea why, but it could be what Rahman Kurnia says.

As the workaround shows, it is really simple to give theme designer that option… just use wp_seo_metadata() function instead of using wp_head() … then theme designer choose where he will place wp_seo_metadata() in the header.php, instead of having anywhere inside wp_head().

There are many people out there searching for that option. If it doesn’t matter, then, it really doesn’t matter to include that option and make some users happy. If it matters, even better.

Kindest regards

January 2, 2015
3:09 pm
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

January 4, 2015
7:29 am
Avatar
karincom
Member
Guests
Forum Posts: 4
Member Since:
December 31, 2014
sp_UserOfflineSmall Offline

Workaround… moving SEO meta-tags to top of header
SEO All In One Plugin… version Version 2.2.4.1
${PLUGINS_FOLDER}/all-in-one-seo-pack/aioseop_class.php

line…  1393
Replace:
add_action( ‘wp_head’, array( $this, ‘wp_head’) );

with
add_action( ‘wp_head’, array( $this, ‘wp_head’), 1 );

Now… SEO stuff is right below title.

Change is really simple.

January 5, 2015
10:15 am
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

January 8, 2015
8:18 am
Avatar
karincom
Member
Guests
Forum Posts: 4
Member Since:
December 31, 2014
sp_UserOfflineSmall Offline

Thank you so much for the update!!!!

SEO All In One Plugin… version Version 2.2.4.2
${PLUGINS_FOLDER}/all-in-one-seo-pack/aioseop_class.php

line 1393:

add_action( ‘wp_head’, array( $this, ‘wp_head’), apply_filters( ‘aioseop_wp_head_priority’, 1 ) );

Now… SEO stuff is right below title !!!!!!!!!

Thank you so much.

January 11, 2015
9:07 am
Avatar
ron.mahon
New Member
Guests
Forum Posts: 1
Member Since:
June 15, 2014
sp_UserOfflineSmall Offline

Peter Baylies said
Hi karincom,

In our experience wp_head() is the proper place for this; if you search the WordPress Codex, you will find zero references to wp_seo_metadata() – this is not a best practice, or even a practice, and it isn’t found in any of the standard themes that ship with WordPress, which are designed as a reference to demonstrate best practices in theme development. The consequence of using wp_seo_metadata() instead of wp_head() is that our SEO metadata simply would no longer show up at all on the vast majority of (or perhaps all) WordPress sites. The two things you can do are 1) edit the header.php in your theme such that wp_head() runs earlier, and 2) change the priority for the wp_head hook for All in One SEO Pack (which is set to the default priority). Example:

add_action( 'init', 'karin_aioseop_init', 11 );
function karin_aioseop_init() {
	global $aiosp;
	if ( is_object( $aiosp ) ) {
		remove_action( 'wp_head', array( $aiosp, 'wp_head') );
		add_action( 'wp_head', array( $aiosp, 'wp_head'), 0 );		
	}
}

Peer thanks very much for the inside information. My PHP skills are very limited, and I was wondering if you could be a little more specific as to where to put these few lines of code.

Regards Ron

January 12, 2015
8:40 am
Avatar
Steve Mortiboy
Admin
Forum Posts: 1789
Member Since:
January 5, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

Forum Timezone: America/New_York

Most Users Ever Online: 964

Currently Online: Nadia Bodikian
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 35

Members: 18948

Moderators: 0

Admins: 8

Forum Stats:

Groups: 4

Forums: 28

Topics: 1824

Posts: 7740

Newest Members:

Ulrik Fournais

Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAsh R

[i]
[i]
Skip to toolbar