{"id":8854,"date":"2024-04-15T09:01:51","date_gmt":"2024-04-15T09:01:51","guid":{"rendered":"https:\/\/musilda.cz\/?p=8854"},"modified":"2024-04-15T09:01:51","modified_gmt":"2024-04-15T09:01:51","slug":"jak-nastavit-vlastni-nahledovy-obrazek-pri-sdileni-na-socialnich-sitich","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-nastavit-vlastni-nahledovy-obrazek-pri-sdileni-na-socialnich-sitich\/","title":{"rendered":"Jak nastavit vlastn\u00ed n\u00e1hledov\u00fd obr\u00e1zek p\u0159i sd\u00edlen\u00ed na soci\u00e1ln\u00edch s\u00edt\u00edch"},"content":{"rendered":"\n
Nastaven\u00ed m\u016f\u017ee b\u00fdt pro ka\u017ed\u00fd web individu\u00e1ln\u00ed. Pokud na webu pou\u017e\u00edv\u00e1me n\u011bjak\u00fd plugin pro SEO, s velkou pravd\u011bpodobnost\u00ed mo\u017enost pro zm\u011bnu n\u00e1hledov\u00fdch obr\u00e1zk\u016f na soci\u00e1ln\u00edch s\u00edt\u00ed umo\u017e\u0148uje. <\/p>\n\n\n\n
V dne\u0161n\u00edm \u010dl\u00e1nku si uk\u00e1\u017eeme jak prob\u00edh\u00e1 zm\u011bna v nej\u010dast\u011bj\u0161\u00edch SEO pluginech, mezi kter\u00e9 spad\u00e1 RankMath<\/a><\/strong> a Yoast SEO<\/a><\/strong>.<\/p>\n\n\n\n Jednotliv\u00e9 n\u00e1hledy m\u016f\u017eeme snadno zkontrolovat, pomoc\u00ed bezplatn\u00fdch funkc\u00ed dan\u00fdch soci\u00e1ln\u00edch s\u00edt\u00ed. Pro uk\u00e1zku n\u00e1hledov\u00e9ho obr\u00e1zku pou\u017eiji ofici\u00e1ln\u00ed web WordPressu.<\/p>\n\n\n\n Po vlo\u017een\u00ed URL se n\u00e1m krom\u011b n\u00e1hledov\u00e9ho obr\u00e1zku zobraz\u00ed i dal\u0161\u00ed informace o dan\u00e9 str\u00e1nce. <\/p>\n\n\n\n Zkontrolovat n\u00e1hledov\u00fd obr\u00e1zek na Facebooku<\/a><\/p>\n\n\n\n U Twitteru byla funkce pro zobrazov\u00e1n\u00ed n\u00e1hled\u016f (v minulosti Card validator) bohu\u017eel vypnuta.<\/p>\n\n\n\n Linkedin pro n\u00e1hledy obr\u00e1zk\u016f nab\u00edz\u00ed jednoduch\u00fd n\u00e1stroj Post Inspector.<\/p>\n\n\n\n Zkontrolovat n\u00e1hledov\u00fd obr\u00e1zek na Linkedinu<\/a><\/p>\n\n\n\n Plugin Yoast v\u00fdb\u011br custom obr\u00e1zk\u016f pro sd\u00edl\u011bn\u00ed na soci\u00e1ln\u00edch s\u00edt\u00edch ve sv\u00e9m nastaven\u00ed umo\u017e\u0148uje. Nejprve p\u0159ejdeme do nastaven\u00ed a aktivujeme n\u00e1sleduj\u00edc\u00ed roz\u0161\u00ed\u0159en\u00ed, kter\u00e9 jsou sou\u010d\u00e1st\u00ed pluginu:<\/p>\n\n\n\n Pot\u00e9 zvol\u00edme mo\u017enost „upravit“ u libovoln\u00e9 str\u00e1nky. Sjedeme na konec str\u00e1nky a v mo\u017enostech Yoast SEO zvol\u00edme „Soci\u00e1ln\u00ed s\u00edt\u011b“:<\/p>\n\n\n\n Str\u00e1nce m\u016f\u017eeme nastavit obr\u00e1zek pro v\u0161echny soci\u00e1ln\u00ed s\u00edt\u011b, a tak\u00e9 zvl\u00e1\u0161\u0165 pro Twitter. Pro zobrazen\u00ed n\u00e1hledu je pot\u0159eba zakoupit licenci, nebo p\u0159ej\u00edt na alternativn\u00ed plugin RankMath, kter\u00fd tuto mo\u017enost zahrnuje ve sv\u00e9 bezplatn\u00e9 verzi.<\/p>\n\n\n\n V\u00edce o pluginu RankMath se dozv\u00edte zde<\/a>.<\/p>\n\n\n\n V nastaven\u00ed pluginu: Rank Math SEO > Tituly a metadata > Miniatura opengraphu<\/strong> m\u016f\u017eeme uploadovat obr\u00e1zek, kter\u00fd se bude zobrazovat p\u0159i jak\u00e9mkoliv sd\u00edlen\u00ed na soci\u00e1ln\u00edch s\u00edt\u00edch. <\/p>\n\n\n\n Jestli\u017ee chceme ka\u017ed\u00e9 str\u00e1nce nastavit jin\u00fd obr\u00e1zek pro sd\u00edlen\u00ed na soc. s\u00edt\u00ed, postupujeme n\u00e1sledovn\u011b:<\/p>\n\n\n\n Pokud bychom cht\u011bli nastavit pro ka\u017edou soci\u00e1ln\u00ed s\u00ed\u0165 jin\u00fd obr\u00e1zek, budeme nuceni pou\u017e\u00edt n\u011bkter\u00fd z vlastn\u00edch filtr\u016f. <\/p>\n\n\n\n D\u00e1le RankMath nab\u00edz\u00ed mo\u017enost nastavit obr\u00e1zek pro soci\u00e1ln\u00ed s\u00edt\u011b pomoc\u00ed vlastn\u00edch filtr\u016f. Ne\u017e budeme zasahovat do k\u00f3du na\u0161\u00ed WordPress \u0161ablony, zkontrolujeme, \u017ee pou\u017e\u00edv\u00e1me child theme<\/strong> \u0161ablony! Pokud tomu tak nen\u00ed, ve\u0161ker\u00e9 zm\u011bny by se p\u0159i aktualizaci \u0161ablony p\u0159epsali. V\u00edce o child theme se dozv\u00edte zde<\/a>.<\/p>\n\n\n\n Jestli pou\u017e\u00edv\u00e1me child theme \u0161ablony zjist\u00edme v nastaven\u00ed: Vzhled<\/strong> > \u0160ablony<\/strong>:<\/p>\n\n\n\n Do child theme sta\u010d\u00ed upravit a vlo\u017eit n\u00e1sleduj\u00edc\u00ed k\u00f3d:<\/p>\n\n\n\nJak zkontrolovat n\u00e1hledy pro jednotliv\u00e9 soci\u00e1ln\u00ed s\u00edt\u011b?<\/h2>\n\n\n\n
\n
Facebook<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Twitter<\/h3>\n\n\n\n
Linkedin<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Jak nastavit n\u00e1hledov\u00fd obr\u00e1zek v Yoast SEO<\/h2>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Jak nastavit n\u00e1hledov\u00fd obr\u00e1zek v RankMath<\/h2>\n\n\n\n
Nastaven\u00ed pluginu<\/h3>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
Pomoc\u00ed filtr\u016f<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
\/\/change default featured image\nadd_filter('rank_math\/opengraph\/facebook\/image', function() {\n return 'https:\/\/PATH\/TO\/image.jpg';\n});\n\nadd_filter('rank_math\/opengraph\/twitter\/image', function() {\n return 'https:\/\/PATH\/TO\/image.jpg';\n});\n\nadd_action( 'wp_head', function() {\n echo '<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>';\n} );<\/code><\/pre>\n\n\n\n