Integrate and Display Google AdSense for Search and Co-Op Custom Search Engine Results in WordPress Blog Page Template Integrēt un Attēlot Google AdSense Search and Co-Op Custom Search Engine Rezultāti WordPress Blog Page Template

Google AdSense for Search features the ability to let web publishers to open and display search results within the website itself. Google AdSense meklēšanas funkcijas spēja ļaut portālu, lai atvērtu un parāda meklēšanas rezultātus vietnē pati. In other word, the results of a user search performed in Google AdSense for Search box will appear within a frame on a page from the site, so that rather the users need not to leave the publishers' websites and being taken to Google, while still able to search for information with Google web search. Ar citu vārdu, ar lietotāja meklēšanai Google AdSense meklēšanas lodziņš ieradies rāmis uz lappuses no vietas rezultātiem, lai gan lietotāji nevajag atstāt izdevēju mājas lapām un tiek veikti Google, bet joprojām spējīgs meklēt informāciju ar Google tīmekļa meklēšanā. Beside, Google AdSense for Search, Google Co-op also has Custom Search Engine that can be placed and integrated, together with the search results into website, and comes with more customization options such as search refinements, ads positioning, prioritize or limit sites to include in search results, change and modify the look and feel, collaboration with users, ability to create multiple search engine, make money with AdSense, and of course, ability to integrate into existing website and blog templates. Blakus, Google AdSense for Search, Google Co-op arī pielāgoto meklētājprogrammu, kas var droši novietot un integrētas kopā ar meklēšanas rezultātus vietnē, un nāk ar vairāk pielāgošanas iespējas, piemēram, meklēt uzlabojumus, reklāmas izvietojums, prioritātes vai ierobežot vietnes iekļautu meklēšanas rezultātos, mainīt un modificēt izskatu, sadarbība ar lietotājiem, spēja izveidot vairākus meklētājprogrammu, pelna naudu ar AdSense, un, protams, spēja integrēt esošās mājas lapas un blogu veidnes.

To integrate, incorporate, embed and display Google search results from Google AdSense for Search and Google Co-Op Custom Search Engine within the template and theme of WordPress blog, we use the similar steps that used to Integrēt, iekļaut, iegultu un rādīt Google meklēšanas rezultātiem Google meklēšanas AdSense un Google Co-Op Custom Search Engine ietvaros veidni un tēma WordPress blogu, mēs izmantojam līdzīgus pasākumus, kas izmantoti, lai integrate and embed Amazon aStore into WordPress integrēt un iestrādāt Amazon aStore vērā WordPress blog by using additional Page template. blog, izmantojot papildu Page veidni. You can embed the search results code snippets on a new post if you want to display search results based on your WordPress theme's Post template. Jūs varat iegult meklēšanas rezultātus koda fragmentus no jaunā amatā, ja vēlaties parādīt meklēšanas rezultātus, balstoties uz sava WordPress tēmas Post veidni. However, as Post doesn't allow you to select a unique custom template for a single post, you will have the same layout among all the post entries and search results. Tomēr, tā kā Post neļauj izvēlēties unikālu pielāgotu veidni vienu pastu, jums būs vienāda struktūra starp visām pastu ierakstus un meklēšanas rezultātiem. This is not advisable, as sidebar may take up a lot of space, and the theme's Post template has contains AdSense ads itself or other customisation that will make the embedded search results appear odd. Tas nav ieteicams, jo sānjoslas var aizņemt daudz vietas, un tēmas Post veidnē ir ietverti AdSense reklāmām vai citām pielāgošana, kas padarīs iegultā meklēšanas rezultātos parādās dīvaini. So using a new Page template is better choice, and the Google search results can be made display on WordPress itself without any need of plugin. Lai, izmantojot jaunas Page veidni ir labāka izvēle, un Google meklēšanas rezultātos var veikt rādīt WordPress sevi bez vajadzības ar spraudni.

To embed, integrate and display Google search displays from Google AdSense for Search and Google Co-Op Custom Search Engine in WordPress blog, try the following steps. Iegult, apvienot un rādīt Google meklēšanas rāda no Google meklēšanas AdSense un Google Co-Op Custom Search Engine WordPress blogu, izmēģiniet šādas darbības.

  1. Sign up for Sign up for Google AdSense Google AdSense or vai Google Co-Op Custom Search Engine Google Co-Op Custom Search Engine . .
  2. When generate the Google AdSense search box code or Google Co-Op Custom Search Engine (CSE) search box code, remember to select “Open results within my own site” (Google AdSense for Search under Opening of search results page section) or “Host a search box and search results on your own site” (CSE under Add this search engine to your website section). Kad radīt Google AdSense meklēšanas lodziņa kodu vai Google Co-Op pielāgoto meklētājprogrammu (CSE) meklēšanas lodziņa kodu, neaizmirstiet izvēlieties "Open rezultātus manā vietā" (Google AdSense meklēšanas saskaņā atklāšana meklēšanas rezultātu lapas sadaļu) vai "Host meklēšanas lodziņu un meklēšanas rezultātus savā vietā "(CSE saskaņā Pievienojiet šo meklētājprogrammu savai mājas lapā sadaļā).

    Google AdSense meklēšanas rezultātus Site
    Google Co-Op CSE Rezultāti Site
    Key in the URL of the page on your site that the search results will appear. Ievadiet URL lapu jūsu vietnē, meklēšanas rezultātos parādīsies. For WordPress page without page parent, the URL should look like this: http://www.yourdomain.com/page-title/ (ie http://www.mydigitallife.info/google-search/). WordPress lapu, lapu vecāks, URL vajadzētu izskatīties šādi: http://www.yourdomain.com/page-title/ (ti http://www.mydigitallife.info/google-search/). Note: trailing slash is insignificant, and can be dropped. Piezīme: trailing slash ir nenozīmīgs, un var būt samazinājies.

  3. You can do any other customization of your personal Google search engine, such as color, logo, style, layout, language, Google domain's country, sites to include, and etc. However, it's out of the scope of this article. Var veikt kādu citu pielāgošanu jūsu personas Google meklētājprogrammu, tādas kā krāsa, logo, stilu, izkārtojumu, valodu, Google domēnu valstī, vietņu, uc Tomēr, tas no šā panta darbības jomu.
  4. After customizing the search box, generate and get the search box code and search results code. Pēc pielāgot meklēšanas lodziņu, radīt un iegūt meklēšanas lodziņš un meklēšanas rezultātu kods. (You must have both code, if not your configuration of search box is wrong.) (Jums ir jābūt gan kodu, ja nav jūsu konfigurāciju meklēšanas lodziņš ir nepareizi.)
  5. Create a custom page template for Wordpress based on your existing Page template. Izveidot pielāgotus lappuses veidni WordPress, balstoties uz jūsu esošo Page veidni. You may retain or drop the sidebar (<?php get_sidebar(); ?> line), as sidebar may take up a lot of your webpage space. Jūs varat saglabāt vai pilienu sānjoslas (<? Php get_sidebar ();?> Līnija), kā Sidebar var ilgt daudz jūsu tīmekļa vietas. If so you will need to adjust the width of search results accordingly during configuration and customisation of search box. Ja tā jums būs nepieciešams pielāgot platumu meklēšanas rezultātus atbilstoši laikā konfigurēšanu un pielāgošanu meklēšanas lodziņā. Beside, as Wordpress templates are heavily aligned and positioned by using CSS DIV tags, you may need to remove DIV in CSS layout that restrict the width (if you remove the sidebar) or modify the structure of the layout in your Google search results page template. Blakus, kā Wordpress veidnes ir ļoti saskaņoti un novieto izmantojot CSS DIV tagiem, jums var būt nepieciešams, lai novērstu DIV ar CSS izkārtojumu, kas ierobežo platumu (ja jūs noņemt sānjoslas) vai pārveidot struktūru izkārtojumu jūsu Google meklēšanas rezultātu lapas veidni . Generally, a Google Search search results page template without sidebar would like similarly like this (comments on template code in italic, can be safely ignored): Kopumā, Google meklēšanas meklēšanas rezultātu lapas veidne bez sānjoslas vēlētos, līdzīgi kā tas (piezīmes par veidne kodu slīpraksts, droši var neņemt vērā):
    <?php <? php
    /* / *
    Template Name: Search Results Page Template Name: Meklēšanas rezultāti Page
    */ * /
    ?> ?>
    The above section is important so that Wordpress will identify the new theme's php file as a Page template. Iepriekš sadaļu ir svarīgi, lai WordPress noteiks jaunas tēmas php failu kā Page veidni. You can change the template name though. Jūs varat mainīt veidnes nosaukuma, though.

    <?php get_header(); ?> <? php get_header ();?>
    In Wordpress theme's header, there may be also DIV tag that controls the width in the Page layout. WordPress tēmas virsraksta, var būt arī DIV tags, kas kontrolē platums lapas izkārtojumu. If it's the case, the remove this line, the copy and paste the everything from Header template, and modify accordingly. Ja tas ir gadījumā, noņemiet šo pozīciju, kopēt un ielīmēt visu, sākot no Header veidnē, un jāpārveido.

    <div class=”content”> <div class="content">
    Again, this may restrict the width of layout, if so, replace it with your own DIV structure, or simply with <center></center> (which I used) or just remove the line. Atkal, tas var ierobežot platums izkārtojumu, ja tā, tad aizstāj to ar savu DIV struktūru, vai vienkārši ar <center> </ center> (ko es lietotu) vai vienkārši noņemt līniju.

    <!– Google Search Result Snippet Begins –> <! - Google Search Result Fragments Begins ->
    <div id=”googleSearchUnitIframe”></div> <div id="googleSearchUnitIframe"> </ div>

    <script type=”text/javascript”> <script type="text/javascript">
    var googleSearchIframeName = 'googleSearchUnitIframe'; var googleSearchIframeName = 'googleSearchUnitIframe';
    var googleSearchFrameWidth = 700; var googleSearchFrameWidth = 700;
    var googleSearchFrameborder = 0 ; var googleSearchFrameborder = 0;
    var googleSearchDomain = 'www.google.com'; var googleSearchDomain = 'www.google.com';
    </script> </ script>
    <script type=”text/javascript” <script type = "text / javascript"
    src=”http://www.google.com/afsonline/show_afs_search.js”> src = "http://www.google.com/afsonline/show_afs_search.js">
    </script> </ script>
    <!– Google Search Result Snippet Ends –> <! - Google Search Result Fragments Ends ->

    Replace above line with your own Google search results code (not Google search box code). Aizstāt virs līnijas ar jūsu Google meklēšanas rezultātu kods (ne Google meklēšanas lodziņa kods).

    </div> </ div>
    If you don't use any DIV above, just remove this line too. Ja tu neizmanto nekādus DIV iepriekš, vienkārši noņemiet šo līniju pārāk. If you use <center>, replace with </center>. Ja Jūs lietojat <center>, aizvietot ar </ center>.

    <?php get_footer(); ?> <? php get_footer ();?>

    Note: You can also exclude the theme's header and footer (basically mean empty template file just just a line of search results code, which will display only search results, but that defeat the purpose of integration with Wordpress. Piezīme: Jūs varat arī izslēgt tēmas galvenes un kājenes (būtībā ir tukša veidne fails tikai tikko līniju meklēšanas rezultātu kods, kas parādīs tikai meklēšanas rezultātus, taču sakāvi, integrācijas ar WordPress.

  6. Save the new page template for your WordPress theme. Saglabàtu jaunu lapu veidni savam WordPress tēmu. You can give it any name. Jūs varat sniegt tai jebkādu nosaukumu.
  7. Upload the new page template with search results code to your Wordpress theme's directory. Upload jaunā lapa veidni ar meklēšanas rezultātu kods jūsu WordPress tēmas direktorijā. So if you're using Blogsome or Wordpress.com, you may be out of luck. Tātad, ja jūs izmantojat Blogsome vai Wordpress.com, Jums var būt no luck.
  8. Create a new Wordpress static Page by clicking on “Write” then “Write Page”. Izveidot jaunu WordPress statisku lapu, uzklikšķinot uz "Write", tad "Write Page".
    Key in Title as what you enter for URL to display search results during setup of Google search box above (eg if you enter /google-search/ as URL for search results page, you will need to enter Google Search as page title). Galvenās sadaļas, kāds jums jāieraksta URL, lai parādītu meklēšanas rezultātus, uzstādīšanas laikā Google meklēšanas lodziņā iepriekš (piemēram, ja ievadāt / google-search / kā URL meklēšanas rezultātu lapā, jums būs jāievada Google Search, lappuses nosaukums). You page-slug has to be exactly the same with the URL entered as shown in image below. Jūs page-slug ir tieši pašu ar URL ievadīts kā parādīts attēlā zemāk.
  9. On the Page Template at the side, choose Search Results Page (or whichever name you gave to the new template). Par lapu pusē Veidnes, izvēlieties meklēšanas rezultātu lapas (vai atkarībā no tā, nosaukums, ko deva jaunu template).

    Post Template and Post Slug

  10. Save and publish the page. Saglabāt un publicēt lapā.
  11. Edit your template, and put in the search box code to anywhere you like the search box to appear. Rediģētu veidni, un īstenot meklēšanas lodziņa kodu jebkur jums patīk meklēšanas lodziņā parādās.
  12. The search results from Google is now integrated with WordPress blog. Meklēšanas rezultāti Google tagad ir integrēts ar WordPress blog. Whenever a user search with the Google search box from AdSense or Custom Search Engine, the search results will appear within your WordPress blog. Ikreiz, kad lietotājs meklēšanu ar Google meklēšanas lodziņu no AdSense vai pielāgotās meklētājprogrammas meklēšanas rezultātos parādīsies savā WordPress blogā.

For sample of integration and inline search results display in WordPress blog by Google AdSense for search, simply use the search box on top. Paraugam integrācijas un inline meklēšanas rezultātu attēlošanu WordPress blog by Google AdSense meklēšanai, vienkārši izmantot meklēšanas lodziņu augšgalā. For Google Co-Op Custom Search Engine, check out Google Co-Op Custom Search Engine, izbraukšana Google Medical Search Engine Google Medical Search Engine . .

IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.


10 Responses to “Integrate and Display Google AdSense for Search and Co-Op Custom Search Engine Results in WordPress Blog Page Template” 10 Atbildes uz "integrētu un Display Google AdSense Search and Co-Op Custom Search Engine Rezultāti WordPress Blog Page Template"

  1. Javier F. Javier F.
    January 26th, 2009 12:17 Janvāris 26, 2009 12:17
    10 10

    Very clear instructions. Ļoti skaidri norādījumi. I succesfully integraded google search to my blog. Es veiksmīgi integraded google search to my blog. Thanks, great work! Paldies, great work!

  2. JD (1to1million) JD (1to1million)
    November 9th, 2008 21:16 9 novembris 2008 21:16
    9 9

    Real shame that the results page (SERP) is dumbed down and doesn't even display the number of pages.. Real kauns, ka rezultātu lapa (SERP), ir dumbed leju un nav pat displejs lappušu skaita ..

    Give you » Results 1-10 Jums »Rezultāti 1-10

    but misses the » …of about __,___ for bet neizmanto »... apmēram __,___ par

  3. rafa Rafa
    October 2nd, 2008 17:28 2 oktobris 2008 17:28
    8 8

    Hi, Čau,
    I succeded in integrating the search into my blog. Es succeded, integrējot meklēšanu manā blogā. The problem is that search results are to wide for being displaied correctly. Problēma ir tāda, ka meklēšanas rezultāti ir plašas, lai to displaied pareizi. since I need my sidebars for navigation (don't have page nav in header) i only have about 600 pix available for display width. jo man vajadzēs manu sidebars navigācijai (nav lapas nav galvenes) Es tikai par 600 pix pieejamo displeja platumu. the minimum display width given by google is 795pix. minimālais displeja platumu, ko google ir 795pix. so it messes up my sidebar and search result display. tāpēc virtuves manu sānjoslas un meklēšanas rezultātu attēlojums.
    any help? any help?
    thanks pateicība

  4. Radio Radio
    August 14th, 2008 22:49 Augusts 14, 2008 22:49
    7 7

    Buen artículo aunque las imágenes un poco borrosas. Buen artículo aunque las imágenes un Poco borrosas. Llevo semanas intentando embedir Adsense en el blog de mi web sin éxito, a ver si siguiendo esta técnica… Llevo semanas intentando embedir Adsense en el blog de mi web sin éxito, ver si siguiendo esta técnica ...

  5. Probando el nuevo Búsqueda Personalizada de Google - Primate Blog Probando el nuevo Búsqueda Personalizada de Google - primāta Blog
    June 15th, 2008 19:02 Jūnijs 15, 2008 19:02
    6 6

    [...] cierto, y más allá del nuevo producto Google, recomiendo este pequeño paso a paso que me vino muy bien para poder integrar los resultados en el template de [...] [...] Cierto, y más alla del nuevo producto Google recomiendo este Pequeño paso paso que me vino muy bien para poder integrar los resultados en el template de [...]

  6. Wordpress Plugin Centre - Clean Wordpress Template - Integrate and Display Google AdSense for Search and Co-Op Custom WordPress Plugin centrs - Clean Wordpress Template - Integrēt un Displeja Google AdSense Search and Co-Op Custom
    June 12th, 2008 15:41 Jūnijs 12, 2008 15:41
    5 5

    [...] Integrate and Display Google AdSense for Search and Co-Op Custom To integrate, incorporate, embed and display Google search results from Google AdSense for Search and Google Co-Op Custom Search Engine within the template and theme of WordPress [...] [...] Integrēt un Displeja Google AdSense Search and Co-Op Custom integrēt, iekļaut, iegultu un rādīt Google meklēšanas rezultātiem Google meklēšanas AdSense un Google Co-Op Custom Search Engine ietvaros veidni un tēma WordPress [. ..]

  7. ragin'Geek ragin'Geek
    May 10th, 2008 14:55 Maijs 10, 2008 14:55
    4 4

    Is there a way to keep a published page from showing up? Vai ir veids, kā saglabāt publicēts lapu rādīšanu? My template uses wp_list_pages to display the top level pages in a menu, can i suppress my search results page? Mani veidni izmanto wp_list_pages parādīt augstākā līmeņa lapas izvēlni, es varu aizliegt meklēšanas rezultātu lapas?

  8. get it from Boy! iegūt no Boy!
    February 3rd, 2008 11:58 3 februāris 2008 11:58
    3 3

    i really like your ad layouts and of course on how to implement it in wordpress.org sites.. Man tiešām patīk jūsu reklāmu izkārtojumu un, protams, par to, kā īstenot to, wordpress.org vietas ..

    i hope you make them into wodpress plugins instead so that it will be easier. Es ceru, ka jūs padarīt tos wodpress plugins, nevis tā, ka tā būs vieglāk. I'm pretty sure your site will be more popular. Es esmu diezgan pārliecināts, ka jūsu portāls būs daudz tautas.

    thanks pateicība

  9. jameswillisisthebest jameswillisisthebest
    September 9th, 2007 04:37 9 septembris 2007 04:37
    2 2

    This is my first post Šī ir mana pirmā pastu
    just saying HI tikai saku, HI

  10. NetBloke NetBloke
    August 20th, 2007 05:26 Augusts 20, 2007 05:26
    1 1

    I am trying to follow these instructions and am not having any luck with getting the results to appear on the search page. Es cenšos ievērot šos norādījumus, un esmu kam nav luck saņemšanā rezultātiem parādīsies meklēšanas lapā.

    I think I am not doing the static page bit right. Es domāju, ka es neesmu darot statisku lapu mazliet pa labi. How do I make it a static page exactly? Kā es varu darīt to statisku lapu tieši?

Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Jūs varat izmantot šos tagus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Saņemt informāciju par jaunāko komentārus, parakstīties uz My Digital Life Comments RSS feed Mana Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Ienākošo Meklēt noteikumi pants

google google - -- modify adsense search width modificēt adsense search platums - -- integrate google adsense integrēt google adsense - -- how to modify google custom search width kā pārveidot google custom search platums - -- integrate google adsense in custom application integrēt google adsense in pasūtījuma pieteikumu - -- "inline search results" google "Inline atlases rezultātu" google - -- costom disply google pase change costom disply google pase maiņa - -- Custom Google Search Results in php Custom Google Search Results in php - -- googleSearch Unit Iframe width change Googlesearch Unit Iframe platums maiņa - -- host search result pages adsense search box uzņēmējas meklēšanas rezultātu lapās adsense search box - -- can a static page in wordpress has adsense var statisku lapu WordPress ir adsense - -- Adsense El Paso Adsense El Paso - -- result google adsense search Meklēšanas rezultāti: google adsense search - --