Skip to content

Latest commit

 

History

History
117 lines (73 loc) · 4.15 KB

wordpressChanges.md

File metadata and controls

117 lines (73 loc) · 4.15 KB

WORDPRESS DEFAULT FILE CHANGES:

  • Add the redirects for the business cards and convention cards

add /blogfeed.php wp-config.php - if debug and vars .htaccess - redirects

wp-includes changes (Core changes)

  • Make sure there are only 5 categories and order them by count. Remove an extra title

category-template.php - wp_list_categories function: 'count' ->5, 'title_li' -> null, 'orderby' => 'count', 'order' => 'DESC',

  • Add the Social Options by editing the follow function

user.php - wp_get_user_contactmethods function

  • On the team (authors) section, stop checking for an unused variable or else they will not show up

author-template.php - remove if ( empty($link) ) { AND } else { if ( '' == $author_nicename ) { $user = get_userdata($author_id); if ( !empty($user->user_nicename) ) $author_nicename = $user->user_nicename; } $link = str_replace('%author%', $author_nicename, $link); $link = home_url( user_trailingslashit( $link ) ); } AND $link = apply_filters('author_link', $link, $author_id, $author_nicename); from get_author_posts_url function

wp-content changes (theme changes)

  • Replace majority of theme for following

header,footer,sidebar, author, content-single, functions.php - pagination function, twentyeleven_continue_reading_link, twentyeleven_posted_on,

  • Add dates to the left of articles

content.php and content-single.php - add above article: <div id="articleWeekday"><?php echo strtoupper(get_post_time('D')); ?></div> <div id="articleDate"><?php echo strtoupper(get_post_time('M j')); ?></div>

  • Change continue reading to Read More

content.php - replace: Continue reading <span class="meta-nav">&rarr;</span> with: Read More

  • Add social media buttons at bottom of the article

content-single.php

  • Only show the mailchimp widget on blog pages

mailchimp_widget.php - add if statement(check for blog pages)

  • Add the custom javascript

add tScript.js in include-styles-and-scripts

  • Remove extra "share" from facebook share on articles

facebookshare.php - remove "Share" from link(2 places)

  • Add the sidebar in individual article pages

single.php - add <?php get_sidebar(); ?> above footer

  • Put "Recent Posts" at top of blog pages instead of the link to older pages. Add pagination to the bottom

index.php, category.php, author.php, archive.php - replace <?php twentyeleven_content_nav( 'nav-above' ); ?> with <h4 class="page-title"><?php echo "Recent Posts" ?></h4> and replace <?php twentyeleven_content_nav( 'nav-below' ); ?> with <?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } ?>

in wordpress-mobile-pack plugin, wpmp_switcher.php - in case WPMP_SWITCHER_DESKTOP_INTERSTITIAL and case WPMP_SWITCHER_MOBILE_INTERSTITIAL, replace wpmp_switcher_mobile_interstitial(); break; with $target_url = "http://" . wpmp_switcher_domains('mobile', true) . wpmp_switcher_current_path_plus_cgi(); header("Location: $target_url"); exit;

in wpmp_switcher.php: (x2) commented out print "<ul><li>" . wpmp_switcher_link('mobile', __('Switch to our mobile site', 'wpmp')) . "</li></ul>"; break;

MISC SETTINGS:

NEVER use visual editor. Disable it for ALL users. Even switching to it and then switching right back can mess things up.

//////////////////////////////////////////

To add back pricing page,

add this to header.php, ~line 27:

`

/wp-content/themes/twentyeleven/style.less" /> <title>Field Service Management Software From The Cloud - Pricing</title> `

and remove one empty li tag from the header(used for spacing)

and this after customers link:

<li class="hoverGreen" id="pricingNav"><a href="<?php echo $GLOBALS["blogLink"]; ?>/pricing">&nbsp;&nbsp;&nbsp;Pricing&nbsp;&nbsp;&nbsp;</a></li>

and this after customers link in footer.php:

<tr><td class="bigFooterText"><a href="<?php echo $GLOBALS["blogLink"];?>/pricing" style="font-size:13px;">Pricing</a></td></tr>