{"id":2910,"date":"2016-04-29T07:46:44","date_gmt":"2016-04-29T07:46:44","guid":{"rendered":"http:\/\/musilda.cz\/?p=2910"},"modified":"2016-04-29T07:46:44","modified_gmt":"2016-04-29T07:46:44","slug":"jak-si-nenechat-poradit-na-facebooku-v-diskuzich","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-si-nenechat-poradit-na-facebooku-v-diskuzich\/","title":{"rendered":"Jak si (ne)nechat poradit na Facebooku a v diskuz\u00edch"},"content":{"rendered":"\n
Dnes to nebude ani n\u00e1vod, ani tip na pluginy, nebo \u0161ablony. Sp\u00ed\u0161e zamy\u0161len\u00ed nad t\u00edm, jak bezhlav\u011b poslouch\u00e1me ciz\u00ed rady.<\/p>\n\n\n\n
K naps\u00e1n\u00ed tohoto postu mne inspirovala diskuze z dne\u0161n\u00edho r\u00e1na ve skupin\u011b na Facebooku.<\/p>\n\n\n\n
Jeden z \u010dlen\u016f se tam ptal na vy\u0159e\u0161en\u00ed pom\u011brn\u011b ban\u00e1ln\u00edho probl\u00e9mu. skupina je vcelku aktivn\u00ed a proto dostal odpov\u011b\u010f velmi rychle. Respektive dostal dv\u011b varianty \u0159e\u0161en\u00ed probl\u00e9mu. A ob\u011b byly naprosto \u0161patn\u00e9.<\/p>\n\n\n\n
Ano, probl\u00e9m vy\u0159e\u0161ili, ale m\u00edsto odstran\u011bn\u00ed prvku, mu bylo doporu\u010deno pou\u017e\u00edt javascript, nebo css. To je jako, kdy\u017e hromadu nepo\u0159\u00e1dku p\u0159ikryjete n\u011bjak\u00fdm p\u0159ehozem. Nepo\u0159\u00e1dek tam st\u00e1le je, ale nen\u00ed vid\u011bt.<\/p>\n\n\n\n
Dotaz byl jednoduch\u00fd – jak m\u00e1m odstranit z v\u00fdpisu produkt\u016f, odkaz na detail produktu.<\/p>\n\n\n\n
Rada 1.<\/strong><\/p>\n\n\n\n Fajn, tak\u017ee m\u00e1me prvek v html, kter\u00fd se na\u010dte a my jej budeme pomoc\u00ed jQuery odstra\u0148ovat z DOMu. Kdy\u017e budeme m\u00edt pomalej\u0161\u00ed p\u0159ipojen\u00ed, tak odkaz nejprve uvid\u00edme a pak zmiz\u00ed. A nav\u00edc do str\u00e1nky cpeme dal\u0161\u00ed, naprosto zbyte\u010dn\u00fd javascript.<\/p>\n\n\n\n Rada 2.<\/strong><\/p>\n\n\n\n P\u0159idat do custom css tento k\u00f3d. Tyto pr\u00e9miov\u00e9 \u0161ablony ch\u00e1pou custom css, jako v\u00fdpis stylu do header a v\u011bt\u0161inou je css zobrazeno a\u017e po na\u010dten\u00ed extern\u00edch soubor\u016f. Tak\u017ee s\u00e1m o sob\u011b je z\u00e1pis stylu nad\u0159azen\u00fd, tak\u017ee co tam d\u011bl\u00e1 !important? Pokud to budu cht\u00edt n\u011bkdy zm\u011bnit, tak mus\u00edm j\u00edt do custom css, proto\u017ee krom\u011b inline z\u00e1pisu, nebudu m\u00edt mo\u017enost styl zm\u011bnit.<\/p>\n\n\n\n Spr\u00e1vn\u011b?<\/strong><\/p>\n\n\n\n Ide\u00e1ln\u00ed \u0159e\u0161en\u00ed je ale jin\u00e9, a to v child theme, vytvo\u0159it kopii p\u0159\u00edslu\u0161n\u00e9ho php souboru a zmi\u0148ovan\u00fd kus html k\u00f3du odstranit. Nezahlcovat k\u00f3d str\u00e1nky zbyte\u010dn\u00fdm javascriptem, nebo css stylem s !important z\u00e1pisem.<\/p>\n\n\n\n Pro\u010d o tom vlastn\u011b p\u00ed\u0161u?<\/p>\n\n\n\n I kdy\u017e jste za\u010d\u00e1te\u010dn\u00edci a chcete si str\u00e1nky upravovat sami, m\u011bli by jste o postupech n\u011bco v\u011bd\u011bt a ne\u0159e\u0161it probl\u00e9my pomoc\u00ed prvn\u00ed odpov\u011bdi, kter\u00e9 se v\u00e1m dostane. Nav\u00edc, kdy\u017e nemus\u00ed b\u00fdt v\u017edy optim\u00e1ln\u00ed.<\/p>\n\n\n\n Ka\u017ed\u00fd n\u011bjak za\u010d\u00ednal, ale posledn\u00ed dobou mi p\u0159ijde, \u017ee u\u017e v\u011bt\u0161ina lid\u00ed rad\u011bji nap\u00ed\u0161e dotaz do diskuze, ne\u017e aby se sna\u017eili naj\u00edt \u0159e\u0161en\u00ed vlastn\u00edmi silami.<\/p>\n\n\n\n To bylo takov\u00e9 ran\u00ed zamy\u0161len\u00ed a slibuji, \u017ee p\u0159\u00ed\u0161t\u011b u\u017e to bude zase n\u011bjak\u00fd n\u00e1vod \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":" Dnes to nebude ani n\u00e1vod, ani tip na pluginy, nebo \u0161ablony. Sp\u00ed\u0161e zamy\u0161len\u00ed nad t\u00edm, jak bezhlav\u011b poslouch\u00e1me ciz\u00ed rady. K naps\u00e1n\u00ed tohoto postu mne inspirovala diskuze z dne\u0161n\u00edho r\u00e1na ve skupin\u011b na Facebooku. Jeden z \u010dlen\u016f se tam ptal na vy\u0159e\u0161en\u00ed pom\u011brn\u011b ban\u00e1ln\u00edho probl\u00e9mu. skupina je vcelku aktivn\u00ed a proto dostal odpov\u011b\u010f velmi rychle.<\/p>\n","protected":false},"author":1,"featured_media":8600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[],"class_list":["post-2910","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-navody","category-zacatecnici"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/2910"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=2910"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/2910\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8600"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=2910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=2910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=2910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}function add_custom_script(){\n?> <script>\njQuery(window).load(function(){ jQuery(\".archive .avia_cart_buttons\").remove(); });\n<\/script>\n<?php\n} add_action('wp_footer', 'add_custom_script');<\/pre>\n\n\n\n
.button.product_type_grouped {\n display: none !important;\n}<\/pre>\n\n\n\n