Home › Forums › Legacy Support › Support queries › Child Themes › A quick introduction and header style question
- This topic has 9 replies, 3 voices, and was last updated 8 years, 5 months ago by Anshuman Sahu.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
June 30, 2016 at 11:54 am #55801OmarSParticipantHi Support. Im a front-end dev guy, Thought id introduce myself and ask my first quick questions. But first! just installed and configured this amazing theme, and slowly finding my way around things. Very well put together considering how extensive and feature rich it is. So seriously you have my praise. So A client came to me with a broken, likely illegal, copy of WPLMS on their site, i think their previous developer was being shady and delivered a horrendous website all together. After researching the theme and understanding the clients requirements i convinced them to either find the source files and a purchase code or to buy the theme again for future development. So here i am now, re-developing their old site from scratch and completely dumping the old files. I setup the basic child theme package (nice touch) and fixed the footer widgets and menus and all that. For some odd reason i did it through WP customizer (which i totally hate using btw) But no no, not any more. not in this theme atleast. So i tested out some layout options and decided i wanted to setup the default theme header on the homepage only and for the rest use the "transparent" style for all other pages. Im ok with PHP but not the best. I know ill have to find both header files and use a php if else statement to load the correct headers for each case, sthg like that. But i was wondering if there is an easier method or a method that wouldn't break the current backend flexibility of changing headers. In anycase you can just point me in the right direction if need be. Thanks for your time.July 1, 2016 at 5:56 am #55894H.K. LatiyanParticipantYou are using a child theme, I guess its the blank child theme. So just add this home.php file (in the attachment) in your child theme. Now the homepage will have the default header and the rest of the website will have the header that you choose in the appearance->customize->header->header style. Let me know if this helps.July 1, 2016 at 11:43 am #55982OmarSParticipantHelloo Support. Thanks for the reply. I applied this fix exactly how you described, but its not taking effect. I still see the header chosen from appearance->customize->header->header style Sitewide on all pages Here is the URI if you want to check. I made sure its not a cached page. http://omarsabet.net/axe/ The file seems to contain the default page loop but i dont see any classes that define the default header.July 1, 2016 at 1:19 pm #56024H.K. LatiyanParticipantOk apologies for my mistake, I didn't forgot to make it a template. Please remove the previous file and add this new file (in attachment). Now edit the home page and choose the new template "Default Header" and update the page. Now it will work. Let me know if this helps.July 1, 2016 at 3:15 pm #56054OmarSParticipantAwesome ok, that worked great. Last quetions, i entered the Longitude/latitude coordinates but the google map is returning an error on this page . It loads up but then returns an error. Any idea why that is?July 2, 2016 at 6:23 am #56117H.K. LatiyanParticipantThe problem with your map is that the api key is missing. In short, Google recently changed the terms of use of its Google Maps APIs; if you were already using them on a website (different from localhost) prior to June 22nd, 2016, nothing will change for you; otherwise, you need an API key in order to fix your error. The free API key is valid up to 25,000 map loads per day. This is general google maps issue not the theme.July 2, 2016 at 11:35 am #56188OmarSParticipantOk i understand. I created an API key from googles api. and applied it at the end of contacts.php at line 36 like so. Its a "Browser Key" type.
<?php $protocol = is_ssl() ? 'https' : 'http'; $src = $protocol.'://maps.googleapis.com/maps/api/js?key=AIzaSyD0zwUpupgY44CuhLw58qyX0kOJaixxxxx&callback=initMap'; ?>
I set the referrer to my dev site (*.omarsabet/*) and production site (*.axcelerate-eg/*) as per googles wildcard example. But still console throws the same errorsnet::ERR_BLOCKED_BY_CLIENT Google Maps API error: RefererNotAllowedMapError Your site URL to be authorized: http://omarsabet.net/axe/contact-us/
Any ideas how to implement the API key successfully ? Thanks again for your time.July 4, 2016 at 12:24 pm #56408Anshuman SahuKeymasterWell i am attacjing the cantact.php file which you can replace with the the original in the theme . You have just write your api key in the attaches contact.zip file . refer : http://prntscr.com/bomd5u http://stackoverflow.com/questions/15281897/google-maps-v3-api-key-invalid-but-my-personal-dev-key-worksJuly 4, 2016 at 2:22 pm #56443OmarSParticipantYeah that's where i was pasting my api key. You forgot to attach the file. Ill follow up on the stack overflow thread and see whats up. ThanksJuly 5, 2016 at 11:05 am #56591Anshuman SahuKeymasterI am sorry here it is . I would also like to inform you that this issue has been fixed by us in the wplms version 2.1.1 releasing today . -
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘A quick introduction and header style question’ is closed to new replies.