Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • WP Media Regenerate via WP-CLI doesn’t work as WP doesn’t recognize the SVGs as media files and it just skips over. Just tested and no changes. CSS fix or re-uploading SVGs with width and height attributes present are only solutions as of now.

    Hello,

    We had this same issue happen for our sites with the custom logo in the Customizer. The CSS fix definitely works but the root cause is from how the SVG is saved out. If it only has the viewBox attributes attached within the code, then SVG Support just injects the width and height as 1px. Need to make sure to re-upload your SVGs and make sure there’s a height and width set on them. This is done in Illustrator by toggling the Responsive setting off so that it attaches the width and height dimensions. Make sure to delete your logo/SVG files and re-upload them. But the CSS is a quick fix that will save time with saving out SVG files. Oh the joys of SVG and web.

    Thread Starter aadf82

    (@aadf82)

    @salzano I’d recommend WP Job Manager. I just integrated it with a client site and their CSS doesn’t override the theme’s CSS. Plus their template system is much easier to override and customize.

    Thread Starter aadf82

    (@aadf82)

    Browser: Google Chrome Version 69.0.3497.100 (Official Build) (64-bit)
    Mac: High Sierra 10.13.6
    WordPress: 4.9.8
    ACF: Pro 5.7.7

    Just tried with Firefox and Safari and still not working.

    • This reply was modified 6 years, 1 month ago by aadf82.
    Thread Starter aadf82

    (@aadf82)

    Thanks Tijmen! I’ll give that a shot. By the way, great plugin!

    There’s a future proof way you can deregister the css file from enqueuing. Put the following code within your functions.php file and within your function to enqueue styles and scripts.

    wp_dequeue_style( 'wpsl-styles' );

    If you don’t already have a function to enqueue your styles then your code should look like this:

    /**
     * Enqueue scripts and styles.
     */
    function my_custom_scripts() {
    wp_dequeue_style( 'wpsl-styles' );
    }
    add_action( 'wp_enqueue_scripts', 'my_custom_scripts' );
    Thread Starter aadf82

    (@aadf82)

    Cais,

    Thanks for the help and the link. I went to each lightbox effect and manually changed the CSS and JS addresses to point to my live site domain.

    For those with a similar problem, after I changed the addresses in CSS and JS, I enabled each lightbox effect and checked to make sure they were working. Be careful when changing the addresses and keep a backup of the original settings in a text file just in case you make a typo and lose the information.

    My site is now loading fast and correctly with each lightbox effect.

    Thread Starter aadf82

    (@aadf82)

    I resolved the issue with Theme not working on live server. There were a couple of issues. The first was that I had a couple of empty spaces at the end of my functions.php file. Make sure the last line of that file is the closing php tag, ?>

    Second was Nextgen Gallery causing conflicts with the wp-footer() call. It wasn’t loading footer scripts. NextGen Gallery has recently updated and fixed that issue and I have it running on my site without a problem.

    The next error was with my custom excerpts, which I mentioned in my last reply. That custom function was valid in WordPress 3.5 but broke with 3.6. The developer that wrote that code, John Bartley, is working on a fix for new version. You can follow the progress on John’s site,

    And lastly, when I was uploading the site to live server, it was uploading Mac hidden files, mainly, .ds store files. To get rid of them, open Terminal and switch to the directory where your theme is located using cd command. Then paste this command and hit enter, find . -name *.DS_Store -type f -exec rm {} \; After that you can zip your theme and upload. Another option if you’re not comfortable with Terminal is to use a zip app called, YemuZip. Download and install. Open up YemuZip and drop your theme files there. It will ask if you want to make it a PC or Mac compatible zip. Choose PC and it will remove all Mac hidden files.

    Some useful plugins I used to debug my theme errors were Theme Checker and Bug Tracker. I suggest using those during theme development and enable WordPress’s built-in debug mode.

    Hope this helps anyone else out that was having trouble like I did.

    Thread Starter aadf82

    (@aadf82)

    Turned on PHP error reporting on my site. Here’s the error I’m getting.

    PHP Parse error: syntax error, unexpected T_FUNCTION in /home1/alejand8/public_html/steelvalleyrugby/wp-content/themes/steelvalleyrugby/functions.php on line 65

    And here is the code causing it.
    `
    function ct_excerpt($new_length = 15){

    //$new_length passes through
    add_filter(‘excerpt_length’, function () use ($new_length) { return $new_length;}, 999);

    //generate current excerpt
    $output = get_the_excerpt();

    //use wptexturize to sanitize the excerpt
    $output = apply_filters(‘wptexturize’, $output);

    //convert characters to remove metadata tags and convert others to unicode
    $output = apply_filters(‘convert_chars’, $output);

    //echo all this code you wrote
    echo $output;
    }
    `

    Line 65 is after comment $new_length passes through. I’m going to rewrite this and make it simpler and see how that works. I’ll post my results after I finish.

    I uploaded my files to live server if you want to check it out. https://steelvalleyrugby.com

    Thread Starter aadf82

    (@aadf82)

    I’m not getting any PHP errors. Only errors I see in the console are the following:

    Invalid CSS selector: button::-moz-focus-inner,input::-moz-focus-inner compile.css:19
    Invalid CSS selector: input:-moz-placeholder,textarea:-moz-placeholder compile.css:258
    Invalid CSS selector: input:-ms-input-placeholder,textarea:-ms-input-placeholder compile.css:259
    Invalid CSS selector: button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner compile.css:401
    Invalid CSS selector: .navbar-inverse .navbar-search .search-query:-moz-placeholder compile.css:736
    Invalid CSS selector: .navbar-inverse .navbar-search .search-query:-ms-input-placeholder compile.css:737
    Invalid CSS property name: font-feature-settings compile.css:964
    Invalid CSS property name: font-feature-settings compile.css:965
    GET https://localhost/steelvalleyrugby/wp-includes/js/jquery/jquery-1.10.2.min.map 404 (Not Found) localhost/steelvalleyrugby/category/media/:490

    And here is what’s loading in my header.php file.

    <head>
    	<meta charset="UTF-8">
        <title>Media | Youngstown Steel Valley Rugby</title>
    	<meta name="description" content="">
    	<meta name="author" content="">
    
    	<!-- Google Font -->
        <link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,600,700" rel="stylesheet" type="text/css">
    
        <!-- Stylesheets -->
    	<link rel="stylesheet" href="https://localhost/steelvalleyrugby/wp-content/themes/steelvalleyrugby/style.css">
    
    	<!-- Pingbacks -->
    	<link rel="pingback" href="https://localhost/steelvalleyrugby/xmlrpc.php">
    
    	<!--[if lt IE 9]><script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    	<!--[if lte IE 7]><script src="lte-ie7.js"></script><![endif]-->
    
    	<!-- Script required for extra functionality on the comment form -->
    
        <meta name="robots" content="noindex,nofollow">
    <link rel="alternate" type="application/rss+xml" title="Youngstown Steel Valley Rugby ? Feed" href="https://localhost/steelvalleyrugby/feed/">
    <link rel="alternate" type="application/rss+xml" title="Youngstown Steel Valley Rugby ? Comments Feed" href="https://localhost/steelvalleyrugby/comments/feed/">
    <link rel="alternate" type="application/rss+xml" title="Youngstown Steel Valley Rugby ? Media Category Feed" href="https://localhost/steelvalleyrugby/category/media/feed/">
    <script type="text/javascript" src="https://localhost/steelvalleyrugby/wp-includes/js/jquery/jquery.js?ver=1.10.2"></script>
    <script type="text/javascript" src="https://localhost/steelvalleyrugby/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1"></script>
    <script type="text/javascript">
    /* <![CDATA[ */
    var photocrati_ajax = {"url":"http:\/\/localhost\/steelvalleyrugby\/photocrati_ajax","wp_site_url":"http:\/\/localhost\/steelvalleyrugby","wp_site_static_url":"http:\/\/localhost\/steelvalleyrugby"};
    /* ]]> */
    </script>
    <script type="text/javascript" src="https://localhost/steelvalleyrugby/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/static/ajax.js?ver=3.6"></script>
    <script type="text/javascript" src="https://localhost/steelvalleyrugby/wp-content/themes/steelvalleyrugby/js/bootstrap.min.js?ver=3.6"></script>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://localhost/steelvalleyrugby/xmlrpc.php?rsd">
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://localhost/steelvalleyrugby/wp-includes/wlwmanifest.xml">
    <meta name="generator" content="WordPress 3.6">
    <!-- <meta name="NextGEN" version="2.0.14" /> -->
    
    <style type="text/css"></style></head>
Viewing 10 replies - 1 through 10 (of 10 total)