thehalogod
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress Permalink Change Auto Add 301 Redirects?Cool so it does add the 301 automatically when you change from default to permalinks custom /%postname%/ ? (just trying to confirm that’s what you’re saying)
Forum: Fixing WordPress
In reply to: WordPress Permalink Change Auto Add 301 Redirects?Anyone know about this please?
Cool thanks again for the help!
Sweet thanks for the reply. What would you suggest I do if I wanted to try and start learning PHP? About all I know is some HTML and some CSS in a very hack style guess and check manner (which of course sucks)
Any suggestions on the best way to get the basics down?
How would I do multiple pages?
This didn’t work…
<?php if ( is_page( '7, 5, 6' ) ) : ?> <script type="text/javascript"> google_ad_client = "pub-XXXXXXXXXXXXXXXX"; /* 160x600, created 10/2/11 */ google_ad_slot = "XXXXXX"; google_ad_width = 160; google_ad_height = 600; </script> <?php endif; ?>
<?php if ( is_page( '7' ) ) : ?> <script type="text/javascript"> google_ad_client = "pub-XXXXXXXXXXXXXXXX"; /* 160x600, created 10/2/11 */ google_ad_slot = "XXXXXX"; google_ad_width = 160; google_ad_height = 600; </script> <?php endif; ?>
So this code would say “display this Adsense if it’s on page 7, but not if it’s on another page” – right?
So because I’m code stupid. What would it look like if you just took what I was trying to do and pasted exactly what I was trying to make into the code area?
Then I can just modify the beginning part to fit the 3 different situations I was mentioning?
Sorry I only learn when I see like a completed code and then work backwards.
So is it safe to say this is how I’d display code from my Adsense
<?php if ( is_front_page() ) { // <script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXXX"; /* 160x600, created 10/2/11 */ google_ad_slot = "XXXXXX"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> } ?> <?php endif; ?>
Is that how it’d work?
Forum: Fixing WordPress
In reply to: "Move" my blog home to /blog/ URL but not update permalinks?Thanks! It worked just like I hoped it would!
Forum: Fixing WordPress
In reply to: "Move" my blog home to /blog/ URL but not update permalinks?No one know what I’m talking about?
Forum: Fixing WordPress
In reply to: How do I show actual code inside a WordPress blog post?HTML
Forum: Fixing WordPress
In reply to: How do I show actual code inside a WordPress blog post?Hmmm that doesn’t seem to effect it unfortunately… Is that plugin the only option then? (I always try and avoid plugins when possible)
Forum: Fixing WordPress
In reply to: How do I show actual code inside a WordPress blog post?I didn’t see any Preformatted paragraph option mentioned…
To clarify:
Step 1: I just create one page as “Home”
On this page I add the content I want to it like my newsletter sign up form etc. a video w/e
Step 2: I create a second page called “Blog” and put NOTHING in it.
This page then should display my blog the way it is now?
Is that right?
But how would I do it so that the /blog/ URL that I create looks the same as my homepage now though?
I don’t want just a list of recent posts. I like the way it is now for my blog I just want a new homepage.
I feel like that changes things as I was aware of the setting > reading option in my admin panel by just setting a page as the home page…
Ideas?