DigitalSquid
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress HelpSounds like your webhost is using an old version of PHP.
Have a look in your webhost’s control panel and see if there’s an option to change the PHP settings (should be using PHP5 if it’s there).
If not, try adding:
AddHandler x-mapp-php5 .php
To the .htaccess file at the root of your site.
Forum: Fixing WordPress
In reply to: Warning: array_merge() [function.array-merge]Sounds like your webhost is using the an old version of PHP. I guess that it’s set to PHP4 instead of PHP5 or 6.
If you can’t find an option in your webhost control panel to change the version then try adding:
AddHandler x-mapp-php5 .php
To your .htaccess file that’s at the root of your server.
Forum: Fixing WordPress
In reply to: Site links to hosts landing pageLooks fine to me. I can see everything on your blog.
If you’ve made any changes to the domain recently, like changing nameservers for example, you might just being seeing the DNS cache. If that’s the case it should fix itself in the next 24 hours or so.
Forum: Themes and Templates
In reply to: Simple if statement with conditional tagsAssuming you’re using the standard permalink system with domain.com/category/ as the url, you could try something like this:
$url = explode('/', $_SERVER['HTTP_REFERER']); if (in_array('category', $url)) { echo the_category(); } else { echo "<a href='blog'>« Back to the blog</a>"; }
Forum: Fixing WordPress
In reply to: .htaccess woesTry switching to a different (ideally the WordPress default if you’re not using it) and see if you get the same problem.
Forum: Themes and Templates
In reply to: Customizing Behavior of current_page_ancestor CSS tagYou could use the
is_author()
function to add an extra class on your header div that only appears on the author pages. Then if you find out what the page ID for the top level Author page is you could use both to create a new CSS selector that only styles that specific menu item on the author pages.So, for example, if you called the new header class
.author_page
and the Author page ID was 5 you could just add.author_page .page-item-5
to your current CSS styling for.current_page_item
Forum: Themes and Templates
In reply to: PHP Question…Yup, just replace
<?php strip_tags( the_excerpt() ); ?>
with:$length = 30; //Or whatever number of words you want $excerpt = strip_tags(get_the_excerpt()); $words = explode(' ', $excerpt); if(count($words) > $length ){ array_splice($words, $count); $excerpt = implode(' ', $words); } echo $excerpt;
In your tag.php template.
Forum: Themes and Templates
In reply to: Optimising for IEIt’s your DOCTYPE. The one you’re using is for HTML5 which isn’t supported by the older versions of IE so they’re having trouble understanding some of the HTML and CSS on the page.
You could fix it by changing the DOCTYPE to a XHTML version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
However, if you want my personal opinion, don’t bother. The issue should only be affecting people using IE7 (or older versions) and as a Web Developer, you shouldn’t be forced to code sites for people who use outdated browsers.
Forum: Themes and Templates
In reply to: list_pages() – Having problem with depthThis should give you just the children if a page:
wp_list_pages('title_li=&depth=1&child_of=*PAGE ID*')
Forum: Fixing WordPress
In reply to: Landing PageSorry, tombegasse. I don’t know why it’s doing that. There are a few reserved words you can’t use for template names but ‘blog’ isn’t one of them.
In theory, you’ve done everything right and the blog page should work! =/
Forum: Fixing WordPress
In reply to: Landing PageForum: Themes and Templates
In reply to: what theme doeshttps://jasonweaver.name/work/tufts-roundtable-commons
It’s a custom theme built on the Genesis framework
Forum: Themes and Templates
In reply to: styling admin commentsRemove
.comment-body:first-child
From:
.comment-author-admin .comment-body:first-child{ color: #444; }
And add
color:#CEEBEB;
to:.comment, .pingback, .trackback { overflow: hidden; padding: 10px; background-color: #3f4e4e; margin-bottom: 10px; font-size:14px; -moz-border-radius-bottomright: 15px; -webkit-border-bottom-right-radius: 15px; border-bottom-right-radius: 15px; }
Or you can add the colour to it’s own .comment style if you don;t want the pingbacks that colour as well.
Forum: Themes and Templates
In reply to: Using wp_nav_menu for multiple menus with dynamic highlightingPost a link to your site so we can have a look at the issues.
Forum: Themes and Templates
In reply to: Using wp_nav_menu for multiple menus with dynamic highlightingUsing exactly the same code is the problem.
With CSS, any ID’s should be unique on the page. So you should only ever have one element with the id of ‘menu’
eg:<div id="menu">
If you want to have multiple elements with the same styling you should use classes instead as there’s no limit to the amount you can have on the page:
eg:<div class="menu">