nuggybear
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GK Portfolio] Post display order in galleryI added the edited single.php to my child theme via ftp. Works great!! Thank you!!
NBForum: Themes and Templates
In reply to: [GK Portfolio] Post display order in galleryI am using Child Theme Configurator v.1.7.5.1. This plugin allows me to add code to my child theme php file from the dashboard > appearance > editor. This is where I added your code, unsuccessfully. Is there is any way to use Child Theme Configurator for this edit?
I can manually edit the single.php code in my parent gk-portfolio theme, but will this edit survive future upgrades?
Thank you for your help!
NB
Forum: Themes and Templates
In reply to: [GK Portfolio] Post display order in galleryHi Gavick,
Can you please clarify how I can correctly add your php code to my child theme? I cut and pasted your code into my child theme php and it took my whole site down until I restored original php, so clearly I did it wrong. Any suggestions would be greatly appreciated. Thank you!!
lisanugget.com(my code starts here)
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );(your code inserted here)
<?php
previous_post_link(
‘<div id=”next-post”>%link</div>’,
‘<i class=”fa fa-arrow-right”></i>’,
(get_theme_mod(‘portfolio_show_post_navigation_same_taxonomy’, ‘0’) == ‘0’ ? FALSE : TRUE)
);
?>
<?php
next_post_link(
‘<div id=”prev-post”>%link</div>’,
‘<i class=”fa fa-arrow-left”></i>’,
(get_theme_mod(‘portfolio_show_post_navigation_same_taxonomy’, ‘0’) == ‘0’ ? FALSE : TRUE)
);
?>
(your code ends here)
// END ENQUEUE PARENT ACTIONThanks for your reply, however “…” still remains in rollover description area after updating my child php with this:
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );
function new_excerpt_more( $more ) {
return ”;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);// END ENQUEUE PARENT ACTION
Hi Gavick,
I added the above code to my child php via appearance. Unfortunately, it did not remove the ellipses. Any clue what could be the issue? My child php code reads:
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );
function new_excerpt_more( $more ) {
return ‘[…..]’;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);// END ENQUEUE PARENT ACTION
Thanks for your help.
(I did not include link to my site because it is a local test site.)
NBSUCCESS!! Thank you, Gavick!
So in summary, I changed the opacity of the white slider in my child theme css by going to Dashboard->Appearance->Editor->
and adding this line (.75 in this instance = 75% of the color white) LOVELY!!:
.post-preview {
background: rgba(255, 255, 255, 0.75);
}Hi Garrick,
i really appreciate your response. Unfortunately, I’m not getting a transparency effect on the slider, it’s still solid white. I understand the logic, that rgba should change the alpha. I inserted the line into my child theme css via the dashboard, and when that didn’t work, I edited the main css directly. Still no change. Don’t know why.
This is how my child theme css reads now:/*
Theme Name: GK Portfolio Child
Template: gk-portfolio
Author: Child Theme Configurator
Version: 1.0.1434805879
Updated: 2015-06-20 13:11:19
*/@charset “UTF-8”;
#content .article-helper.notloaded {
background: #rgba(255, 255, 255, 0.75) url(‘images/loader.gif’) no-repeat center center;
}Any clues as to what might be the problem?
Thanks again, love your theme.
NBThank you for your answer, and for creating this great theme.
I selected an individual post to get to the Post preview animation type > opacity option, but choosing the opacity option here does not change the opacity of the slider. What am I doing wrong?
Thanks again,
NBHi Gavick,
I noticed this contributor successfully changed opacity of front page solid white slider box: https://www.matter-photography.com/
Like Maralline and Matter photography, I want to change opacity of front page white slider. I installed your beta:
1) In v.1.5.0 it will be possible to select slide direction or opacity/scale effect – the beta version is available here: https://github.com/GavickPro/Portfolio-Free-WordPress-ThemeWhere does new beta version provide for opacity change to white slider box? I don’t see it under customization.
Thanks,
NB