DIY মিডিয়া হোম লোগো

আপনার নিজের হোম থিয়েটার এবং হাই ফাই সেটআপ নকশা ও নির্মাণের জন্য চূড়ান্ত সাইট.

22ওয়ার্ডপ্রেস লোগোথিসিস থিম জন্য ধনী অংশবিশেষ কোড

একটি জবাবে Darko Kovancives দ্বারা ক্যোয়ারী সম্পর্কে আমার পূর্ববর্তী নিবন্ধে[int­link id=“1520” type=“post”]fixing Rich Snip­pets code for the Mys­tique theme[/intlink] we have resolved the same issues with the Thes­is theme. Details of the changes required are below.

Before the file edits you need to carry out vari­ous oth­er changes and tasks

  1. একটি Google প্রোফাইলটিতে (i.e. A + অ্যাকাউন্ট google)
  2. আপনার সাইটের ঠিকানা যোগ করুন (উদাঃ. HTTPS দ্বারা://diymediahome.org) আপনার গুগল + প্রোফাইল, একটি পাবলিক লিঙ্ক হিসাবে
  3. Get your google plus ID and use it in place of mine in file edit num­ber 5 below
  4. Change a Thes­is set­ting for show­ing author on teas­ers in the options — Thes­is: ডিজাইন বিকল্প: টিজাররা: Teas­er Dis­play Options: টিক্ "লেখকের নাম"
  5. Change a Thes­is set­ting for link­ing author in options — Thes­is: ডিজাইন বিকল্প: প্রদর্শনের বিকল্পগুলি: Bylines: "আর্কাইভ লিংক লেখকের নাম"

নিম্নরূপ এখন ফাইলটি সম্পাদনা করবেন

1. পংক্তিটি পরিবর্তন 151 একটি vCard স্প্যান ভিতরে FN স্প্যান নীড় content.php মধ্যে

থেকে

[php htmlscript=“1”]echo __(‘by’, ‘thes­is’) . " <span class=\“author vcard$fn\”>$লেখক</বিঘত>";[/পিএইচপি]

থেকে

[php htmlscript=“1”]echo __(‘by’, ‘thes­is’) . " <span class=\“vcard\”><span class=\“author $fn\”>$লেখক</বিঘত></বিঘত>";[/পিএইচপি]

2. পংক্তিটি পরিবর্তন 114 content.php প্রকাশিত তারিখ সেইসাথে আপডেট তারিখ প্রদান

থেকে

[php htmlscript=“1”]যদি ($তারিখ)
echo ‘<abbr class=“published” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time(get_option(‘date_format’)) . </abbr>;[/পিএইচপি]

থেকে

[php htmlscript=“1”]যদি ($তারিখ){
যদি(get_the_date()!=get_the_modified_date()){
echo ‘<abbr class=“published” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time(get_option(‘date_format’)) . </abbr>. আপডেট করা হয়েছে <abbr class=“updated” title=“ ‘ . get_the_modified_time(‘Y‑m-d’) . ’ ”> . get_the_modified_time(get_option(‘date_format’)) . </abbr>;
}
অন্যথায়{
echo ‘<abbr class=“published updated” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time(get_option(‘date_format’)) . </abbr>;
}
}[/পিএইচপি]

3. পংক্তিটি পরিবর্তন 81 আপডেট তারিখ অন্তর্ভুক্ত করা teasers.php মধ্যে

থেকে

[php htmlscript=“1”]echo ‘<abbr class=“teaser_date pub­lished” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time($use_format) . "</abbr>\n”;[/পিএইচপি]

থেকে

[php htmlscript=“1”]যদি(get_the_date()!=get_the_modified_date()) echo ‘<abbr class=“teaser_date pub­lished” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time($use_format) . </abbr><abbr class=“teaser_date updated” title=“ ‘ . get_the_modified_time(‘Y‑m-d’) . ’ ”><span class=“value-title” title=“ ‘.get_the_modified_time($use_format).’ ”></বিঘত></abbr>’.”\n”;
else echo ‘<abbr class=“teaser_date pub­lished updated” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time($use_format) . "</abbr>\n”;[/পিএইচপি]

4. লাইনে লেখক href কোড সম্পাদনা 144 এখন rel যোগ content.php এর = "আমার"

থেকে

[php htmlscript=“1”]$author = ‘<a href=“ ‘ . get_author_posts_url(get_the_author_ID()) . ’ ” class=“url fn“ ‘ . $nofol­low .’> . get_the_author() . </একটি>;[/পিএইচপি]

থেকে

[php htmlscript=“1”]$author = ‘<a rel=“me” href=“ ‘ . get_author_posts_url(get_the_author_ID()) . ’ ” class=“url fn“ ‘ . $nofol­low .’> . get_the_author() . </একটি>;[/পিএইচপি]

5. পংক্তিটি পরিবর্তন 308 content.php মধ্যে Google অ্যাকাউন্ট লিঙ্ক সন্নিবেশ করতে

থেকে

[php htmlscript=“1”]$output .= “$tab\t<h1>" . apply_filters(‘thesis_archive_intro_headline’, get_author_name($wp_query->query_vars[‘author’])) . "</h1>\n”; #wp[/পিএইচপি]

থেকে

[php htmlscript=“1”]$output .= “$tab\t<h1><a rel=\“me\” href=\“https://plus.google.com/104657888470728381512/\”>" . apply_filters(‘thesis_archive_intro_headline’, get_author_name($wp_query->query_vars[‘author’])) . "</একটি></h1>\n”; #wp[/পিএইচপি]

উত্তর দিন

22 মন্তব্য

MAআমি আক্তার

very help­ful web­site. it is big use­ful for us. ভাগ করে নেওয়ার জন্য ধন্যবাদ.

উত্তর
J(Jenz Kudo (Nedrosat)

আরে জন
আমি আমার পৃষ্ঠার জন্য একই ভুল করেছি http://www.bijouxOr.org

সতর্কতা : মিস-ing আবশ্যক ক্ষেত্র "এন্ট্রি উচ্চ শিরোনাম".
সতর্কতা : মিস হয়-ing প্রয়োজনীয় ক্ষেত্র "আপডেট".
সতর্কতা : মিস হয়-ing প্রয়োজন hCard "লেখক".

উত্তর
JSজন Scaife

Yes — I’ve had some syn­tax cor­rup­ted by the word­press code edit­or and by a plu­gin. আমি এখন আশা এই সমস্যাগুলি সমাধান করেছি এবং ছুটির দিনে সব পোস্টে কোড ডবল পরীক্ষণ হতে হবে. এটার জন্য দুঃখিত!

উত্তর
ANAde ইন

আমার জন্য মহান শিক্ষক ... দরকারী,... আমার ব্লগে কাজ. তোমাকে অনেক ধন্যবাদ.

উত্তর
টিটড

ধন্যবাদ জন. চকচকে ফিক্স. The Thes­is’ hcard errors cleaned up nicely.
আমরা হয়তো আপনার জন্য উত্তর জানতে পারবেন, যা একটি সম্পর্কিত বিষয় ভুগেন. আমরা কিছু কোডিং hrecipe বিন্যাস উৎপাদিত আছে এবং পোস্ট উপাদান পরিদর্শন যখন markups দেখতে পারেন, কিন্তু ধনী স্নিপেট টুল এ সব গোছগাছ না হয়. ডেভেলপার কোন সমস্যা তার সাইটে এবং অন্যদের উপর কুড়ান পেয়ে গেছে সে খুঁজে নির্মিত হয়েছে, but for some reas­on it isn’t get­ting picked up on a Thes­is theme.

এই আপনার Roundhouse মধ্যে যদি জানেন না, but if you could take a look that would be awesome.

এখানে মার্কআপ সঙ্গে আমাদিগের একটি পোস্ট: রোস্ট স্ট্রবেরি মাফিন
এখানে মার্কআপ সঙ্গে তার এক: আজেবাজে ইসলাম

ধন্যবাদ আবার আগের ফিক্স জন্য এবং যে কোন সাহায্যের জন্য দিতে পারবেন.

উত্তর
টিটড

আমি উত্তর মূর্ত আউট. রেসিপি একটি ব্লককোট ট্যাগ আবৃত ছিল. I changed that to a div tag and everything ran through perfect.

Thanks again on the pre­vi­ous hcard coding.

টি

উত্তর
WJWouter ডি জং

হাই জোন,

চমৎকার পোস্টের জন্য ধন্যবাদ অনেক. আমি একটি সামান্য ক্ষুদ্র সমস্যা আছে কি. আপনি কটাক্ষপাত আছে দয়া করে গেল?

https://www.google.com/webmasters/tools/richsnippets?view=&url=www.wouterdejong.net%2Fblog

সম্ভবত এটি একটি ছোট জিনিস, কিন্তু আমি সমস্যা খুঁজে পেতে সক্ষম নই.

অনেক প্রশংসা!

উত্তর
JSজন Scaife

আমি আপনার এখন rel ঘাঁটা করেছি মনে = "আমার" ও "rel = লেখক" একটি বিট ট্যাগ

আপনার লেখক পাতা থেকে আপনার Google প্রোফাইল - আপনি শুধুমাত্র = "আমার" লিঙ্ক একেকটি এখন rel থাকা উচিত. অন্য যেকোন স্থানে আপনি এখন rel = "লেখক" ট্যাগ থাকা উচিত. আপনার হোমপেজে প্রতিটি পোস্ট পয়েন্ট, যা একটি "Wouter ডি জং দ্বারা" লিঙ্ক আছে (সঠিকভাবে) আপনার লেখক পাতা ), কিন্তু আপনি এই লিঙ্ক = "আমার" rel আছে. এটা এখন rel হবে = "লেখক"

আপনি এই এখন rel পরিবর্তন করার পর = "আমার" rel = "লেখক" মধ্যে সংযোগগুলি আমি এটা সব কাজ করবে মনে করি - যে আপনি একাধিক এখন rel পেয়েছেন তেমনি = আপনার লেখক পৃষ্ঠায় "আমার" লিঙ্ক, ফিরে নিজেই এবং শুধুমাত্র তাদের অধিকাংশই 1 (সঠিকভাবে) আপনার Google প্রোফাইলে ইশারা. আমি এই স্নিপেট টুল বিভ্রান্তিকর মনে

উত্তর
এসস্বাস্থ্য

হাই জোন, it worked per­fectly — I did­n’t include items 4 এবং 5 from your list as they are not essen­tial to val­id­ate the rich snip­pet and I’m not bet­ting on Google+ just yet so I don’t want to “lit­ter” my themes 🙂

Thanks for the tip 🙂

উত্তর
একটিarafinshaon

আমি content.php ফাইলে ঠিক একই কোড পেয়ে করছি জন Scaife @ কষ্ট হচ্ছে. I’m using thes­is 1.8.2. প্রতীক্ষা 4 আপনার প্রতিক্রিয়া.…

উত্তর
JSজন Scaife

You might have to search for sim­il­ar code on slightly dif­fer­ent line num­bers. আপনি আমাকে আপনার content.php পাঠাতে হলে আমি একটি চেহারা হবে

উত্তর
একটিarafinshaon

আমি ঠিক এই করেনি. after doing this my Author­ship markup got veri­fied but unfor­tu­nately I’m get­ting below errors .

সতর্ক-ing: মিস হয়-ing প্রয়োজনীয় ক্ষেত্র "আপডেট".
সতর্ক-ing: অন্তত একটি ক্ষেত্র Hcard জন্য নির্ধারণ করা আবশ্যক.
সতর্ক-ing: প্রয়োজনীয় ক্ষেত্র অনুপস্থিত "নাম (FN)".

আমি ক্রলিং জন্য কয়েক দিনের জন্য অপেক্ষা করতে হবে না?

উত্তর
JSজন Scaife

আপনার সাইটের ঠিকানা কি? যা পাতা আপনি ত্রুটি পাচ্ছেন? হোম পেজ, একটি পোস্ট বা উভয়? Have you made any oth­er modi­fic­a­tions to the theme — like adding extra files or using a child theme?

উত্তর
JSজন Scaife

দুঃখিত - আমার দোষ. আমি এটা মূর্ত আউট করেছি. কোড ওয়ার্ডপ্রেস দ্বারা mangled ফেরার ছিল. I think when I update the post word­press pro­cesses some of the code and takes some of the classes out which makes it dis­func­tion­al. আমি এটা সংশোধন করেছি. এখন এটা ব্যবহার করে দেখুন দয়া করে.

উত্তর
EYআর Eko

ধন্যবাদ, খুব দরকারী তথ্য. কিন্তু, এই ব্লগে মত মেটা ট্যাগ তথ্য যোগ করার জন্য কিভাবে? আমি ভিউ পৃষ্ঠার তথ্য »ব্রাউজারের ডান ক্লিক করবেন তাহলে এটা দেখায়. There are many inform­a­tion on gen­er­al tab. লেখক মত, ভিউপোর্ট ইত্যাদি. আমার ব্লগ শুধু থাকতে হয় : কন্টেন্ট, রোবট, বিবরণ, keywords in page info..How to get this snippet?
তোমাকে ধন্যবাদ..

উত্তর
JSজন Scaife

Most of that comes from using a semant­ic HTML5 theme for word­press com­bined with the Yoast এই PLU-জিন. আমি humans.txt ও robots.txt এর মত বিভিন্ন মেটা ফাইল আছে. আপনার ওয়ার্ডপ্রেস সেটআপ উন্নতি সম্পর্কে তথ্য লোড জন্য ওয়ার্ডপ্রেস গাইড কটাক্ষপাত আছে.

উত্তর