fbpx

How to Fix the Atahualpa Theme

AFTER UPDATING the ATAHUALPA THEME to a NEW VERSION

If you normally keep your logo icon in wp-content/themes/atahualpa/images, you will probably need to re-upload it after updating the theme.  Try keeping it under wp-content/uploads with a standard name and see if wp-content/themes/atahualpa/functions/bfa_header_config.php can figure out where it is.  If bfa_header_config.php has changed too much, simply restore it to a working earlier revision on your local system, re-upload it and reload the blog page to see if the logo is once again displayed.  After all, it’s your blog and you probably have your own unique idea of how it should look and work.


OMIT THE BLOGROLL FROM THE RIGHT SIDEBAR

  • In Site Admin Under Appearance, select Widgets.
  • On the right panel, drop open the Right Sidebar meta-widget.
  • Drag the widgets you do want in the right sidebar from the center section over to the Right Sidebar meta-widget.
    • Do this even for the widgets that were already there that you still want to be there.
    • The first widget you drag there overrides all of the default content.
    • So you’ll have to reconstruct what you want from scratch.
  • Give the widgets the titles you want (even if they’re the same as the defaults).
    • Without section titles, the link groups will be concatenated into a single list.
    • This may or may not be what you had in mind.
    • The same comments apply as above: You have to reconstruct what you want from scratch.
  • Wait for the Save operations to complete.
  • Revisit your site to verify the result. Thing of beauty.

LINK YOUR LOGO, HEADER AND TAGLINE TO AN ALTERNATE HOME PAGE

One option I did not find in Atahualpa 3.4.1 is the ability to replace the blog URL with an alternate URL in selected places. This allows you to link selected phrases or images to a home page other than the default blog home page. In many cases a user is already on the page the header elements link to, so as long as you leave the “HOME” link as is, linking the header elements to an alternate home page might make better use of them.

The file to edit  under your <blog_url> is:

wp-content/themes/atahualpa/functions/bfa_header_config.php

Note: It looks like bfa_header_config.php was fixed somewhere between Atahualpa 3.4.1 and 3.6.4.  As of 3.6.4 the following changes are not needed.

To implement the indicated features in earlier versions of the Atahualpa theme, edit the file as follows:

To re-link the logo, find the section entitled Logo Icon for WordPress and WPMU.

  • Comment out the line:
$logo_area .= ‘<td ‘ . $header_rowspan . ‘valign=”middle”><a href=”‘ .
$bfa_ata[‘get_option_home’] . ‘/”><img src=”‘;
  • Replace it with a line of the form:
$logo_area .= ‘<td ‘ . $header_rowspan . ‘valign=”middle”>
<a href=”http://<your_domain>/<your_home_page>“><img src=”‘;

To re-link the blog title, find the section entitled Blog title and description.

  • Comment out the line:

$logo_area .= ‘<h’ . $bfa_ata[‘h_blogtitle’] . ‘ class=”blogtitle”><a href=”‘ .
$bfa_ata[‘get_option_home’] . ‘/”>’ . $bfa_ata[‘bloginfo_name’] . ‘</a></h’ . $bfa_ata[‘h_blogtitle’] . ‘>’;

  • Replace it with a line of the form:

$logo_area .= ‘<h’ . $bfa_ata[‘h_blogtitle’] . ‘ class=”blogtitle”>
<a href=”http://
<your_domain>/<your_home_page>“>’ .
$bfa_ata[‘bloginfo_name’] . ‘</a></h’ . $bfa_ata[‘h_blogtitle’] . ‘>’;

To re-link the tagline, move down a few lines from your blog title edits.

  • Edit the tagline clause to insert a link to your home page as follows:

$logo_area .= ‘<p class=”tagline”>’ . ‘<a href=”http://<your_domain>/<your_home_page>“>’ .
$bfa_ata[‘bloginfo_description’] . ‘</a></p>’;

  • You’ll notice that the tagline hover effect defaults to the standard underline effect because the theme does not restyle the tagline as it does the logo and blog title.
  • You may also notice that I ultimately chose not to link my tagline. You may decide as I did that the theme designer was aesthetically correct in excluding the tagline from the linking and restyling applied to the logo and blog title. Even after taking the trouble to restyle the tagline so as to maintain stylistic consistency with the rest of the page after adding a link, the presence of three separate links to the same home page from the header alone is a bit over the top. A separate link from the tagline could also give the false first impression that the tagline is instead the title of distinct content.

TO FIX BROKEN PAGE LINKS

  • On your site admin page, select Pages.
  • When your pages are displayed, click into the page name of a broken link.
  • Select the text in your browser’s URL bar and note the format of the page address.
  • On your site admin page, select Settings > Permalinks.
  • Under Common Settings, select the matching link format.
  • Scroll to the bottom and click the Save Changes button.
  • Refresh your blog site and re-test your page links.