Lara Schenck
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WPFolio Theme with A_GalleryRe: Random errors – try going into wp-config.php and find the line that says
define('WP_DEBUG', true);
and if it says true, set it to false. This will hide any non-fatal errors. I don’t recommend doing this until the site goes live, however – it will hide a lot of errors you should know about.Re: lightbox height – WPFolio doesn’t include any code for a lightbox so the error is likely causing the lightbox to ignore you. Look in the plugin options before changing the code and make sure your images are the right size. If all else fails, its not a bad idea to contact the plugin developer about it or just use a different plugin.
Re: page comments – you need to disable comments on pages individually. Read this thread or if your trying to code it, this thread looks promising.
Forum: Themes and Templates
In reply to: wpfolio 1.72 comment date ??Can you send a link to your site?
Also, when editing theme files it is definitely best to use a child theme so your changes aren’t overwritten on updates and it is easier to troubleshoot.
Forum: Themes and Templates
In reply to: WPFolio: Cannot change font sizesCSS stands for Cascading Style Sheets which means everything is read like a cascade – from top to bottom. When putting together your stylesheet, you should have the general styles (body, wrapper, header, etc) at the top of the page and more and more specific styles as you go down.
Forum: Themes and Templates
In reply to: WPFolio: Cannot change font sizesUse Firefox and install the addon Firebug – it has an inspect element tool that lets you see the style of different elements on a page. Then, for IE, use percentages or em instead of px when defining your font sizes. 100% and em are worth about 16 px – read up on font units here.
Forum: Themes and Templates
In reply to: wpfolio 1.72 headerIn your child theme’s style.css uncomment the included styles
div#header
anddiv.headertext
. Then change the url indiv#header
toimages/logo.png
.If you’re lost, take a look at this article about CSS syntax. w3schools.com has excellent introductory tutorials for HTML, CSS, and a ton of other stuff – definitely check them out if you are interested in learning.
Good luck!
Forum: Themes and Templates
In reply to: Upgraded to wpfolio 1.7 and website goneUpdate to the above function (which should work also) – replace the entire function (lines 151-187) with this:
// Testing to see if the PHP version is up to date. If it is, add a WPFolio RSS feed widget, and if it's not, add a widget prompting an upgrade. if (version_compare(PHP_VERSION, '5.3.0', '>=')) { // Add WPFolio Wiki site as a Dashboard Feed // Thanks to bavotasan.com: https://bavotasan.com/tutorials/display-rss-feed-with-php/ function custom_dashboard_widget() { $rss = new DOMDocument(); $rss->load('https://wpfolio.visitsteve.com/wiki/feed'); $feed = array(); foreach ($rss->getElementsByTagName('item') as $node) { $item = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, // 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue, ); array_push($feed, $item); } $limit = 5; // change how many posts to display here echo '<ul>'; // wrap in a ul for($x=0;$x<$limit;$x++) { $title = str_replace(' & ', ' & ', $feed[$x]['title']); $link = $feed[$x]['link']; // $description = $feed[$x]['desc']; $date = date('l F d, Y', strtotime($feed[$x]['date'])); echo '<li><p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong>'; echo ' - '.$date.'</p></li>'; // echo '<p>'.$description.'</p>'; } echo '</ul>'; echo '<p class="textright"><a href="https://wpfolio.visitsteve.com/wiki/category/news" class="button">View all</a></p>'; // link to site } function add_custom_dashboard_widget() { wp_add_dashboard_widget('custom_dashboard_widget', 'WPFolio News', 'custom_dashboard_widget'); } add_action('wp_dashboard_setup', 'add_custom_dashboard_widget'); } else { function print_php_error() { $error = "<p style='color:red; font-size: 1.5em;'>You are using an outdated version of PHP. WordPress doesn't support it and neither does WPFolio! Upgrade to the latest version of PHP.</p>"; echo $error; } function add_error_widget() { wp_add_dashboard_widget('error_widget', 'IMPORTANT!', 'print_php_error'); } add_action('wp_dashboard_setup', 'add_error_widget' ); }
This should keep your site from crashing and will instead give you a text widget in the Dashboard prompting you to update to the latest version of PHP.
I’ve done some testing and it works fine, but it would be very helpful for someone with the actual issue to test it out. Good karma for doing so. Thanks!
Forum: Themes and Templates
In reply to: Upgraded to wpfolio 1.7 and website goneSome servers (GoDaddy) use an older version of PHP and the Wiki Feed function includes features from a newer version, causing the site crash. You can switch to PHP 5 via your account manager on GaDaddy: instructions here.
I’m working on a function to give a nicer error instead of crashing the site. I can’t replicate the error, so @kunstenaar – could you uncomment the function, delete the
add_custom_dashboard_widget()
andadd_action()
functions, then copy and paste this below the main function:if (version_compare(PHP_VERSION, '5.3.0', '>=')) { function add_custom_dashboard_widget() { wp_add_dashboard_widget('custom_dashboard_widget', 'WPFolio News', 'custom_dashboard_widget'); } add_action('wp_dashboard_setup', 'add_custom_dashboard_widget'); } else { $error = "<strong>Invalid PHP version, unable to load WPFolio RSS feed. Check your server's PHP preferences and update to the latest PHP version.</strong>"; echo $error; }
If it works, your site shouldn’t crash and instead of the Dashboard Feed you will the error message. Let me know if it works! Thanks a lot.
Forum: Themes and Templates
In reply to: wpfolio sub-menu customization questionIn your child theme’s style.css add this:
.sf-shadow ul { background-color: green; }
And if you want to change the hover stuff, just add rules to the selector
.sf-shadow ul a:hover
.Forum: Themes and Templates
In reply to: [WPFolio] Upgraded to WP Folio 1.72, and text wrap quitsSure, good luck with your project!
Forum: Themes and Templates
In reply to: [WPFolio] Upgraded to WP Folio 1.72, and text wrap quitsAre you using a child theme? If not, do and add this to style.css:
h1,h2,h3,h4,h5,h6,form,fieldset{ display: inline; }
That should let you have images on the same line as <h> tags and will fix the contact form issue.
Forum: Themes and Templates
In reply to: [WPFolio] Upgraded to WP Folio 1.72, and text wrap quitsOk, figured out your problem. In the 1.72 version, you have your image before the ‘Artist Statement’ h3 text. Header text now requires its own line, so it keeps the image above the text rather than being positioned beside it. If you take out the h3, should work fine.
P.S. As you are using WPFolio for paid work, maybe you would consider donating to the project? It’s free and run by unpaid volunteers. Check the bottom of this page. Thanks ??
Forum: Fixing WordPress
In reply to: Blog posts wont change pagesGlad to be of help! Good luck with your site ??
Forum: Fixing WordPress
In reply to: Blog posts wont change pages@justinbeckett – you are using WPFolio 1.5 and its now on 1.7. The latest was just approved for the www.remarpro.com themes repository, so you can download it there. That should fix your problem.
Forum: Themes and Templates
In reply to: [WPFolio] Upgraded to WP Folio 1.72, and text wrap quitsThe margins are by default on pages and not on Home or posts pages. I can’t replicate the issue – the text wrap works for me with and without margins. Try reinstalling WPFolio and see if the problem persists.
@manoj9664 – can you post your site’s URL?
Forum: Themes and Templates
In reply to: [WPFolio] Upgraded to WP Folio 1.72, and text wrap quitsHave you tried overriding wide margins? Go to the ‘Page Attributes’ box and under ‘Template’ select Full Width Page.
The margins are a new feature to make text more readable. You can add them selectively with the [margin] shortcode.