gotgotf
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove sidebar from Fifteen theme posts/pagesRemove this line <?php get_sidebar( $name ); ?> from single.php
Forum: Fixing WordPress
In reply to: Customizer.js does not loadNice.
Forum: Fixing WordPress
In reply to: Customizer.js does not loadwhat is your Url please ?
Forum: Fixing WordPress
In reply to: Since WordPress 4 Upgrade Slow Loading Sitedownloadable font: download failed (font-family: “FontAwesome” style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed source: http://findlay56.dogloverbiz.netdna-cdn.com/wp-content/themes/unpress/fonts/fontawesome-webfont.woff?v=4.1.0
Forum: Fixing WordPress
In reply to: Issues with button?Remplace this
nav .filler {
display: inline-block;
height: 0;
width: 100%;
}
by
nav .filler {
}and
nav ul {
display: block;
line-height: 40px;
margin: 0 auto;
padding: 0;
position: relative;
text-align: center;
z-index: 400;
}And
nav ul li {
display: inline;
list-style: none outside none;
margin: 0 20px;
padding: 0;
position: relative;
}Forum: Fixing WordPress
In reply to: Customizer.js does not loadCodex here /
http://codex.wordpress.org/Function_Reference/wp_enqueue_scriptUse this in your function.php/
<?php
function live_preview() {
wp_enqueue_script(‘mytheme-themecustomizer’, get_template_directory_uri() . ‘/assets/js/theme-customizer.js’, array( ‘jquery’ ), ”, true );
}
add_action( ‘wp_enqueue_scripts’, ‘live_preview’ );
?>Forum: Fixing WordPress
In reply to: first image onlyOR SOURCE /
http://stackoverflow.com/questions/15978879/get-first-image-on-custom-post-type
function catch_that_image($my_postid) {
global $post;$first_img = ”;
ob_start();
ob_end_clean();
$output = preg_match_all(‘/<img.+src=[\'”]([^\'”]+)[\'”].*>/i’, get_post_field(‘post_content’, $my_postid), $matches);$first_img = $matches [1] [0];
// no image found display default image instead
if(empty($first_img)){$first_img = “/images/default.jpg”;
}
return $first_img;
} ?><div class=”thumbnail”>
<?php echo catch_that_image($loop->ID) ?>
</div>Forum: Fixing WordPress
In reply to: first image onlyMaybe with $thumb[0]
Forum: Fixing WordPress
In reply to: 404 errorcheck your template files/ header.php
You have this code/
404<!DOCTYPE HTML>Forum: Fixing WordPress
In reply to: 404 errorStrange, do you have a 404 message in your header.php ?
Forum: Fixing WordPress
In reply to: embed code as a feature imagewith plugin for exemple /
https://wordpress.org/plugins/replace-featured-image-with-video/Forum: Fixing WordPress
In reply to: 404 Error (File Permissions?) (Ubuntu)past only this in your htaccess /
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressand active mod_rewrite in your php.ini
resolved, cool.
ah nice,
error :
test_url is undefinedthis is the problem !