Forum Replies Created

Viewing 15 replies - 46 through 60 (of 78 total)
  • Re: 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.

    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.

    CSS 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.

    Use 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.

    In your child theme’s style.css uncomment the included styles div#header and div.headertext. Then change the url in div#header to images/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!

    Update 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!

    Some 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() and add_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.

    In 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.

    Sure, good luck with your project!

    Are 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.

    Ok, 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 ??

    Glad to be of help! Good luck with your site ??

    @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.

    The 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?

    Have 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.

Viewing 15 replies - 46 through 60 (of 78 total)