silvereyesphoto
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Dara] Copyright info in footer, and different sidebar imagesHi! I am really struggling with the code for the functions.php file. Every variation I have tried on the sample code below doesn’t work. I need to incorporate parts of the following: function dara_scripts() {
wp_enqueue_style( ‘dara-style’, get_stylesheet_uri() );To this example code
<?php
function my_theme_enqueue_styles() {$parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
?>Forum: Themes and Templates
In reply to: [Dara] Copyright info in footer, and different sidebar imagesThank you so much @siobhyb, I will be working on this later today and I will let you know how I go ??
Forum: Themes and Templates
In reply to: [First] Change URL link in logoReposted because I realise I didn’t hit ‘reply’ to you before ??
Thank you. I have one wordpress site that I have split in two – my existing photography business is at https://www.silvereyesphotography.com.au, and I am adding pages to the site as part of my student work for graphic design, so I have applied a different template to these pages to give the appearance of two websites. This is why I needed to change the logo URL, so that I went to a different ‘home’ page. The design website starts here https://www.silvereyesphotography.com.au/about/
I hope that makes sense!
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”content”>
*
* @package First
*/
?><!DOCTYPE html>
<!–[if IE 8]>
<html class=”ie8″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if !(IE 8) ]><!–>
<html <?php language_attributes(); ?>>
<!–<![endif]–>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<?php if ( ! get_theme_mod( ‘first_disable_responsive’ ) ) : ?>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<?php endif; ?>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<!–[if lt IE 9]>
<script src=”<?php echo get_template_directory_uri(); ?>/js/html5shiv.js”></script>
<![endif]–>
<?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<div id=”page” class=”hfeed site”>
<?php _e( ‘Skip to content’, ‘first’ ); ?><header id=”masthead” class=”site-header” role=”banner”>
<div class=”site-top”>
<div class=”site-top-table”>
<div class=”site-branding”>
<?php if ( get_theme_mod( ‘first_logo’ ) ) : ?>
<h1 class=”site-logo”><?php first_logo(); ?></h1>
<?php endif; ?>
<?php if ( ! ( get_theme_mod( ‘first_logo’ ) && get_theme_mod( ‘first_replace_blogname’ ) ) ) :?>
<h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<?php endif; ?>
<?php if ( ! get_theme_mod( ‘first_hide_blogdescription’ ) ) : ?>
<div class=”site-description”><?php bloginfo( ‘description’ ); ?></div>
<?php endif; ?>
</div><?php if ( has_nav_menu( ‘header’ ) ) : ?>
<nav id=”header-navigation” class=”header-navigation” role=”navigation”>
<?php wp_nav_menu( array( ‘theme_location’ => ‘header’, ‘depth’ => 2 ) ); ?>
</nav><!– #header-navigation –>
<?php endif; ?>
</div>
</div><?php if ( ! get_theme_mod( ‘first_hide_navigation’ ) ) : ?>
<div class=”site-bar”>
<nav id=”site-navigation” class=”main-navigation” role=”navigation”>
<div class=”menu-toggle”><?php _e( ‘Menu’, ‘first’ ); ?></div>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
<?php if ( ! get_theme_mod( ‘first_hide_search’ ) ) : ?>
<?php get_search_form(); ?>
<?php endif; ?>
</nav><!– #site-navigation –>
</div>
<?php endif; ?><?php if ( is_home() && get_header_image() ) : ?>
<div id=”header-image” class=”header-image”>
” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=””>
</div><!– #header-image –>
<?php elseif ( is_page() && has_post_thumbnail() ) : ?>
<div id=”header-image” class=”header-image”>
<?php the_post_thumbnail( ‘first-page-thumbnail’ ); ?>
</div><!– #header-image –>
<?php endif; ?>
</header><!– #masthead –><div id=”content” class=”site-content”>
Forum: Themes and Templates
In reply to: [First] Change URL link in logoThank you. I have one wordpress site that I have split in two – my existing photography business is at https://www.silvereyesphotography.com.au, and I am adding pages to the site as part of my student work for graphic design, so I have applied a different template to these pages to give the appearance of two websites. This is why I needed to change the logo URL, so that I went to a different ‘home’ page. The design website starts here https://www.silvereyesphotography.com.au/about/
I hope that makes sense!
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”content”>
*
* @package First
*/
?><!DOCTYPE html>
<!–[if IE 8]>
<html class=”ie8″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if !(IE 8) ]><!–>
<html <?php language_attributes(); ?>>
<!–<![endif]–>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<?php if ( ! get_theme_mod( ‘first_disable_responsive’ ) ) : ?>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<?php endif; ?>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<!–[if lt IE 9]>
<script src=”<?php echo get_template_directory_uri(); ?>/js/html5shiv.js”></script>
<![endif]–>
<?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<div id=”page” class=”hfeed site”>
<?php _e( ‘Skip to content’, ‘first’ ); ?><header id=”masthead” class=”site-header” role=”banner”>
<div class=”site-top”>
<div class=”site-top-table”>
<div class=”site-branding”>
<?php if ( get_theme_mod( ‘first_logo’ ) ) : ?>
<h1 class=”site-logo”><?php first_logo(); ?></h1>
<?php endif; ?>
<?php if ( ! ( get_theme_mod( ‘first_logo’ ) && get_theme_mod( ‘first_replace_blogname’ ) ) ) :?>
<h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<?php endif; ?>
<?php if ( ! get_theme_mod( ‘first_hide_blogdescription’ ) ) : ?>
<div class=”site-description”><?php bloginfo( ‘description’ ); ?></div>
<?php endif; ?>
</div><?php if ( has_nav_menu( ‘header’ ) ) : ?>
<nav id=”header-navigation” class=”header-navigation” role=”navigation”>
<?php wp_nav_menu( array( ‘theme_location’ => ‘header’, ‘depth’ => 2 ) ); ?>
</nav><!– #header-navigation –>
<?php endif; ?>
</div>
</div><?php if ( ! get_theme_mod( ‘first_hide_navigation’ ) ) : ?>
<div class=”site-bar”>
<nav id=”site-navigation” class=”main-navigation” role=”navigation”>
<div class=”menu-toggle”><?php _e( ‘Menu’, ‘first’ ); ?></div>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
<?php if ( ! get_theme_mod( ‘first_hide_search’ ) ) : ?>
<?php get_search_form(); ?>
<?php endif; ?>
</nav><!– #site-navigation –>
</div>
<?php endif; ?><?php if ( is_home() && get_header_image() ) : ?>
<div id=”header-image” class=”header-image”>
” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=””>
</div><!– #header-image –>
<?php elseif ( is_page() && has_post_thumbnail() ) : ?>
<div id=”header-image” class=”header-image”>
<?php the_post_thumbnail( ‘first-page-thumbnail’ ); ?>
</div><!– #header-image –>
<?php endif; ?>
</header><!– #masthead –><div id=”content” class=”site-content”>
Forum: Themes and Templates
In reply to: [First] Change URL link in logoThank you so much @saurabhdhariwal! That worked perfectly. Thank you also for the tip about the child theme. I will be sure to get around to creating one before I update this theme in future.
Perhaps you could answer another question for me – where do I adjust the code to open this URL in the same window? It currently opens in a pop up window.
I appreciate your help very much, thank you.
@photocrati Thank you Cais – deactivating and reactivating all of the plugins solved the problem. I didn’t realise this was a safe option (on WordPress in general), so thank you!
Really appreciate your help – I was completely lost! Our site is relatively low maintenance and we don’t have a great deal of knowledge beyond the basics of setting up the site and the galleries, so we often miss simple issues like updates, and things like the simple fix you have provided above. We’ll remember this for next time!
The NextGen gallery has been fantastic, and thank you for your prompt and thorough responses. Our business is photography, so our site is pretty useless without your galleries ??
@photocrati Thank you Cais. I haven’t used a custom template, from memory it was the basic thumbnails gallery with the carousel template, which I have confirmed is what is still in use. NextGen is up to date and I have been through the gallery settings and selected various templates to test them out but none work.
I’m not sure what my next step is?
Thanks for your help.
@photocrati Thank you so much Cais! This has all been a big learning curve for me, setting up this site. I knew there would be a simple fix I just didn’t know where to start. Done.
I do have another question, previously, using the carousel, I could scroll to look at the image and simply click through the thumbnails and the gallery would refresh the image. Now when I click on a thumbnail, the entire page refreshes which means I have to scroll again to see the thumbnails.
It’s not a huge deal, but I personally find it really annoying, and don’t want to annoy potential customers! Short of making my images significantly smaller, which I am reluctant to do, is there a way around this?
Thanks again.