Another Wordpress Integration Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bean-aid
    So Fucking Banned
    • Jun 2011
    • 16493

    #1

    Another Wordpress Integration Question

    Somebody who is fluent with wordpress may know the answer.

    I want to break up the home page of a wordpress site and add a programmed google map. Basically the map is a calculator and calls some php files.

    How can the home page be modified to include this and have it stay so updates don't erase the code?
  • Inter-Sex
    Confirmed User
    • Nov 2005
    • 2231

    #2
    Create a post as sticky ?
    Or hardcode it in your index.php ?

    Comment

    • CS-Jay
      Confirmed User
      • Oct 2003
      • 1794

      #3
      Originally posted by Inter-Sex
      Or hardcode it in your index.php ?
      There ya go
      I do stuff - aIm CS_Jay_D

      Comment

      • CurrentlySober
        Too lazy to wipe my ass
        • Aug 2002
        • 38944

        #4
        Just delete wordpress entirely - Problems solved and job done...


        👁️ 👍️ 💩

        Comment

        • MediaGuy
          Confirmed User
          • Sep 2004
          • 5500

          #5
          If you hardcode it into you index.php (in your menu goto Appearance/Editor and change to default style sheet), you'd have to maybe limit the number of posts on the index page to one or two if you want to put the map below the main content, otherwise it will appear a long scroll down from first loading.

          You could also hardcode it above the main content so it's the first thing they see - but I don't think you can break up the posts themselves with the map - unless you want it occurring beneath every post?

          :D

          YOU Are Industry News!
          Press Releases: pr[at]payoutmag.com
          Facebook: Payout Magazine! Facebook: MIKEB!
          ICQ: 248843947
          Skype: Mediaguy1

          Comment

          • harvey
            Confirmed User
            • Jul 2001
            • 9266

            #6
            Originally posted by MediaGuy
            If you hardcode it into you index.php (in your menu goto Appearance/Editor and change to default style sheet), you'd have to maybe limit the number of posts on the index page to one or two if you want to put the map below the main content, otherwise it will appear a long scroll down from first loading.

            You could also hardcode it above the main content so it's the first thing they see - but I don't think you can break up the posts themselves with the map - unless you want it occurring beneath every post?

            :D
            first paragraph is true. Second isn't, it's very easy to "break" into the loop, but I don't know if this is what he wants, to me it looks like he wants what you say in the first paragraph

            anyway, a neat way to achieve this without affecting flow is as follows:

            first add this code between <head></head> tags:

            Code:
            <script language="javascript"> 
            function toggle() {
            	var ele = document.getElementById("hideMap");
            	var text = document.getElementById("showMap");
            	if(ele.style.display == "block") {
                		ele.style.display = "none";
            		text.innerHTML = "show";
              	}
            	else {
            		ele.style.display = "block";
            		text.innerHTML = "hide";
            	}
            } 
            </script>
            then, right before the loop starts (in index.php), add this:

            Code:
            <a id="showMap" href="javascript:toggle();">Show Map</a> 
            <div id="hideMap" style="display: none">{insert your map code here}</div>
            and that's it, now you can hide and show your map without affecting the flow!
            This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

            Comment

            • Inter-Sex
              Confirmed User
              • Nov 2005
              • 2231

              #7
              Harvey the wp-ninja

              Comment

              • harvey
                Confirmed User
                • Jul 2001
                • 9266

                #8
                Originally posted by Inter-Sex
                Harvey the wp-ninja
                ha ha, no, not even close, Fris is the ninja, I'm just a little grasshopper
                This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

                Comment

                • fris
                  Too lazy to set a custom title
                  • Aug 2002
                  • 55679

                  #9
                  many ways to do it, 1 is harveys way, im sure their are 20+ ways to do it, depending on your skill set, etc.
                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                  Comment

                  • Ace_luffy
                    www.creationcrew.com
                    • Feb 2005
                    • 12164

                    #10
                    fris is a guru!!


                    ++ Adult and Mainstream Websites Designs | 10 banners for only $50 | html5 Banners ++
                    email : [email protected] Telegram : https://t.me/creationcrew WhatsApp : +63 956 420 4819 | HTML5/Responsive Site - Div/CSS - ElevatedX - NATs - Wordpress

                    Comment

                    Working...