{"id":17,"date":"2010-02-21T16:28:07","date_gmt":"2010-02-21T16:28:07","guid":{"rendered":"https:\/\/www.taywa.ch\/blog\/?p=17"},"modified":"2010-02-21T16:58:27","modified_gmt":"2010-02-21T16:58:27","slug":"live-search-popup-plugin-problem-bei-wordpress","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/wordpress\/live-search-popup-plugin-problem-bei-wordpress\/","title":{"rendered":"&#8222;Live Search Popup&#8220; Plugin Problem bei WordPress"},"content":{"rendered":"<p><strong>Problem:<\/strong> Die Funktion &#8222;livesearchpopup_resultsbox()&#8220; vom WP-Plugin &#8222;<a href=\"http:\/\/wordpress.org\/extend\/plugins\/live-search-popup\/\">Live Search Popup<\/a>&#8220; stellt das Popup Fenster zu breit dar.<br \/>Das Problem hat zwei Gr\u00fcnde:<\/p>\n<ol>\n<li>Der Parameter der Breite wird nicht richtig behandelt.<\/li>\n<li>Je nach Theme hat es kein Elternelement mit relativer oder absoluter Positionierung<\/li>\n<\/ol>\n<p><strong>L\u00f6sung:<\/strong> \u00d6ffne die Datei &#8230;\/wp-content\/plugins\/live-search-popup\/live-search-popup.php in deiner WordPress Installation.<br \/>\nErsetze die Funktion &#8222;livesearchpopup_resultsbox&#8220; ca. ab Zeile 38 mit folgendem Code. <\/p>\n<div class=\"php dean_ch\"><span class=\"kw2\">function<\/span> livesearchpopup_resultsbox<span class=\"br0\">&#40;<\/span><span class=\"re0\">$width<\/span><span class=\"br0\">&#41;<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"kw1\">print<\/span> <span class=\"st_h\">&#8218;&lt;div style=&quot;position: relative; padding-top: 7px; width:&#8216;<\/span><span class=\"sy0\">.<\/span><span class=\"re0\">$width<\/span><span class=\"sy0\">.<\/span><span class=\"st_h\">&#8218;;&quot;&gt;&#8216;<\/span><span class=\"sy0\">;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; livesearchpopup_results<span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"kw1\">print<\/span> <span class=\"st_h\">&#8218;&lt;\/div&gt;&#8216;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><\/div>\n<p>Dies sollte den Bug der Breite beheben, da A. der $width Parameter nun interpretiert wird und B. das Elternelement relativ positioniert wird.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Die Funktion &#8222;livesearchpopup_resultsbox()&#8220; vom WP-Plugin &#8222;Live Search Popup&#8220; stellt das Popup Fenster zu breit dar.Das Problem hat zwei Gr\u00fcnde: Der Parameter der Breite wird nicht richtig behandelt. Je nach Theme hat es kein Elternelement mit relativer oder absoluter Positionierung L\u00f6sung: \u00d6ffne die Datei &#8230;\/wp-content\/plugins\/live-search-popup\/live-search-popup.php in deiner WordPress Installation. Ersetze die Funktion &#8222;livesearchpopup_resultsbox&#8220; ca. ab<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[20,18,19,186],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-livesearchpopup","tag-plugin","tag-suche","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":5,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/17\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}