This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elseif ( is_page( '59' ) || '59' == $post->post_parent ) { // About | |
$post = get_post(); | |
get_template_part( 'carousel-about' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Blog only showing particular category | |
function my_home_category( $query ) { | |
if ( $query->is_home() && $query->is_main_query() ) { | |
$query->set( 'cat', '7'); } } | |
add_action( 'pre_get_posts', 'my_home_category' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// User this just to call the image that's the featured image for that page surrounded by the 'img tag | |
<?php echo get_the_post_thumbnail(); ?> | |
// If you want more control over the size of the image | |
<?php echo get_the_post_thumbnail( get_the_ID(), 'full' ); ?> | |
// If statement for Thumbnail | |
<?php if ( has_post_thumbnail()) : // Check if thumbnail exists ?> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> | |
<?php the_post_thumbnail(array(120,120)); // Declare pixel size you need inside the array ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Press & Media Blog | |
*/ | |
?> | |
<?php get_header(); ?> | |
<div class="container"> | |
<h1>Press & Media</h1> | |
<p>Members of our team have been interviewed by international and UK media to explain the dynamics of the fine wine market and the treatment of fine wine as an alternative asset for investment purposes.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For contact forms: | |
- Ninja Forms (By The WP Ninjas) | |
- reCAPTCHA for Ninja Forms (Aman Saini) | |
- Contact Form 7 (By Takayuki Miyoshi) | |
- Contact Form 7 Honeypot (Nocean) | |
- Contact Form 7 - reCAPTCHA (By iambriansreed) | |
- Invisible reCaptcha for WordPress - (By Mihai Chelaru) | |
- Bootstrap for Contact Form 7 (By Felix Arntz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace this... | |
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSize); ?>" | |
// ...with this. | |
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->keepFrame(false)->resize($_imgSize); ?>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is likely to occur AFTER you have increased the file upload threashold. To resolve this, go to: Settings > Permalinks and click 'Save'. This will rewrite the htaccess file and resolve the error. | |
// No access to Admin? | |
01. Disable the 'wps-hide-login' plugin by renaming it. | |
02. Go to: Settings > Permalinks and click 'Save'. This will rewrite the htaccess file and resolve the error. | |
03. Enable the 'wps-hide-login' plugin. | |
04. Login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Favicon | |
function vinx_favicon() { | |
echo '<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />'; | |
} | |
add_action('wp_head', 'vinx_favicon'); |