A quick introduction and header style question

Home Forums Legacy Support Support queries Child Themes A quick introduction and header style question

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #55801
    OmarS
    Participant
    Hi 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.
    #55894
    H.K. Latiyan
    Participant
    You 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.
    #55982
    OmarS
    Participant
    Helloo 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.  
    #56024
    H.K. Latiyan
    Participant
    Ok 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.
    #56054
    OmarS
    Participant
    Awesome 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?
    #56117
    H.K. Latiyan
    Participant
    The 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.
    #56188
    OmarS
    Participant
    Ok 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 errors
    net::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.
    #56408
    Anshuman Sahu
    Keymaster
    Well 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-works
    #56443
    OmarS
    Participant
    Yeah 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. Thanks
    #56591
    Anshuman Sahu
    Keymaster
    I 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 .
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘A quick introduction and header style question’ is closed to new replies.