Big Bagel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Duplicate Content WWW and non WWW Front PageBoth the www and non-www versions look exactly the same to me. They both have the same meta tags and an empty title tag. To get rid of the duplicate content problem you have to redirect one to the other; the best way to do so is detailed here.
Forum: Fixing WordPress
In reply to: How can I center my Adsense Ad?bah…
For copy/paste purposes replacing all that ad code with:
<div style="text-align: center;"> <script type="text/javascript"><!-- google_ad_client = "pub-2542975605347305"; /* 728x90, under banner 8/4/11 */ google_ad_slot = "4287651566"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"> </div>
will center it.
Forum: Fixing WordPress
In reply to: How can I center my Adsense Ad?The css (
.adsense { text-align: center; }
) should be added to the bottom of your “style.css” file in your theme. You could also add:<style type="text/css"> .adsense { text-align: center; } </style>
right before the </head> tag in your theme’s “header.php” file.
Or, if you don’t want to mess with any other files, use:
<div style="text-align: center;">...your google ad code...</div>
Forum: Fixing WordPress
In reply to: How can I center my Adsense Ad?The center tag is deprecated and really shouldn’t be used anymore.
margin-left
will work as long as it’s set to exactly half the remaining space (which in this case would be 116px) whiletext-align: center
, since the div will automatically fill the entire width, will work regardless.In other words, surround your google ad code in a div with an id or class:
<div id="adsenseAd">...code...</div>
or
<div class="adsenseAd">...code...</div>
then use the id/class to center it using css:
If you use an id:
#adsenseAd { text-align: center; }
or if you use a class:
.adsenseAd { text-align: center; }
You can also use
margin-left
instead:If you use an id:
#adsenseAd { margin-left: 116px; }
or if you use a class:
.adsenseAd { margin-left: 116px; }
but you will have to change that value if you ever change the overall width of your site/header/adsense ad.
Forum: Fixing WordPress
In reply to: Cannot See Network Admin Menu or Superadmin Menu Multy Site InstallAs long as that user is set as the network admin the username doesn’t matter.
Assuming you did everything needed, in the top right, click on “howdy, [user name]”. A link to the network admin area should be in the menu that pops up.
Forum: Fixing WordPress
In reply to: Redirect www.domain.com to domain.com.That’s WordPress’s normal rules to enable pretty permalinks.
Forum: Fixing WordPress
In reply to: Redirect www.domain.com to domain.com.Before, but only to keep it separated from the WordPress rules. (It technically shouldn’t matter)
Forum: Fixing WordPress
In reply to: Redirect www.domain.com to domain.com.Bah…
The forum made one of those examples a link, but I think you get the idea.
Forum: Fixing WordPress
In reply to: Redirect www.domain.com to domain.com.Yup, that should do it. It has apache redirect all browsers from https://www.anything.whatever to anything.whatever.
The author of that article (and I) both suggest putting that at the beginning of your .htaccess file.
Forum: Fixing WordPress
In reply to: Redirect www.domain.com to domain.com.Will this link do the trick?
Forum: Fixing WordPress
In reply to: How can I center my Adsense Ad?The easiest way would probably be to wrap your ad code in a div:
<div id="googleAd">...google ad code...</div>
then add:
#googleAd { text-align: center; }
to the bottom of your theme’s style sheet (style.css).
Forum: Fixing WordPress
In reply to: How to remove and restore postsWhen you’re editing a post, you can change the post’s status from “published” to “draft” (in the “Publish” box usually at the top right). When you want to publish the post (have it show your site) switch it back from “draft” to “published”.
Forum: Fixing WordPress
In reply to: AvatarsWordPress uses Gravatars by default. Just set up a Gravatar for the same email address you used in your account(s).
If you want to use local images for avatars a plugin (like this one) would do the trick.
Forum: Fixing WordPress
In reply to: Get ID of parent categoryGoing by the function reference for get_the_category() something like:
$category = get_the_category(); $parent_cat = $category->category_parent;
might work.