Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Adding Google Custom Search


  #1  
Old May 31, 2012, 11:15 AM
gnosis
 
173 posts · May 2010
Would like to add google custom search to site, using this methodology:

http://digwp.com/2010/10/google-cust...o+WordPress%29

If I wanted to replace the default search and put Google CSE in the same location, where do I add search box code:
searchform.php
-or-
header.php
-or-
/functions/bfa_header_config.php
  #2  
Old May 31, 2012, 10:32 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I always avoid modifying theme files. I would put the code in a widget and position with CSS.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jun 1, 2012, 07:22 AM
gnosis
 
173 posts · May 2010
be great if Atahualpa followed this paradigm:

http://codex.wordpress.org/Child_Themes
  #4  
Old Jun 1, 2012, 07:51 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you can create a child theme with atahualpa
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 1, 2012, 11:46 AM
gnosis
 
173 posts · May 2010
So if I copy Atahualpa and rename directory to act as a child and then in child theme's style.css do I merely add:

Template: Atahualpa

and then i can modify the files in the child theme?
  #6  
Old Jun 1, 2012, 02:51 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You copy the style.css and change the title to something like
HTML Code:
Theme Name: Ata 377 child
and you need the index.php . after that you can do what you want.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jun 4, 2012, 10:00 AM
gnosis
 
173 posts · May 2010
How does child now about parent without reference to template:

"Template: Atahualpa "

With your suggestion mean, when Atahualpa updates occur I will not need to modify bring theme updates into child?
  #8  
Old Jun 4, 2012, 10:08 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You leave in the template name so your style.css will will start with
HTML Code:
/*
Theme Name: Ata 377 child
Theme URI: http://wordpress.bytesforall.com/
Description: Configure your custom theme: Fixed or flexible width layout, with min/max width, 0 - 4 sidebars, very browser safe (incl. IE6), create custom widget areas, import/export styles (several styles included), color pickers, over 200 options. 
Author: BytesForAll
Author URI: http://forum.bytesforall.com/
Template: Atahualpa377
Version: 0.1.0
*/
Notice the 'Theme Name' line at the beginning and the 'Template' line towards the end.
You might want to read up on creating a child theme at wordpress.org
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; Jun 4, 2012 at 10:45 AM.
  #9  
Old Jun 4, 2012, 10:47 AM
gnosis
 
173 posts · May 2010
So when Atahyalpa 3.7.8 comes out change:

Template: Atahualpa377

to:

Template: Atahualpa378

In my child theme's styles.css?
  #10  
Old Jun 4, 2012, 12:51 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That's the idea
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Aug 29, 2012, 02:07 PM
derekwbeck
 
151 posts · Nov 2010
Is it not possible to create a child theme that need not be modified everytime the latest ATA version comes out?
  #12  
Old Aug 29, 2012, 03:12 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the child theme ties to the parent theme based on the 'Template: xxxxxxx' line and the xxxxxxx is teh name of the FOLDER in the themes folder. If you use the Wordpress automatic install and updating, the theme folder is Atahualpa so you would use 'Template: Atahualpa'. If you are doing manual installs and have multiple installs so your folder was Atahualpa378, then you would use 'Template: Atahualpa378' inorder for it to apply to that release (this means changing it each time you install a new release)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #13  
Old Sep 17, 2012, 05:05 AM
homedecornest's Avatar
homedecornest
 
1 posts · Sep 2012
It is not so easy. How do you think the wordpress on my website's blog /www.homedecornest.com/blog .I don't know how to add the google custom search to my website too.

Last edited by juggledad; Sep 17, 2012 at 05:24 AM.
  #14  
Old Sep 17, 2012, 05:25 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
homedecornest: this forum is for users of the Atahualpa and Montezuma themes. If you want to ask questions, you need to use one of these themes.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
google custom search



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting php call to Google Custom Search WordPress Plugin bigliettaio Header configuration & styling 1 Jan 3, 2012 11:03 PM
Custom job: Adding fields to search property terminator Customization, Design, Programming... 1 Apr 21, 2010 05:29 PM
[SOLVED] Google Custom Search Widget not working. simonsaysgo Sidebars & Widgets 1 Jan 6, 2010 08:27 PM
Google Custom Search Plugin upscho Plugins & Atahualpa 0 Feb 27, 2009 04:51 AM


All times are GMT -6. The time now is 12:16 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.