Digital experiences for all disciplines
Forum Replies Created
-
-
Hi guys,
Well, making progress. But I still believe i’m making errors in the code;
getting an error:
Fatal error: Cannot redeclare sf_admin_scripts() (previously declared in /home3/james948/public_html/the-escalator.com/wp-content/themes/joyn-child/functions.php:308) in /home3/james948/public_html/the-escalator.com/wp-content/themes/joyn/functions.php on line 310Here is what I have in my child functions.php so far.
function joyn_child_enqueue_styles() {
wp_enqueue_style( ‘joyn-parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘style.css’, get_stylesheet_directory_uri() . ‘/css/style.css’ );
wp_enqueue_style( ‘style.scss’, get_stylesheet_directory_uri() . ‘/css/style.scss’ );
}function sf_enqueue_scripts() {
wp_register_script(‘jscroll-probe.js’, get_stylesheet_directory_uri(). ‘/js/iscroll-probe.js’, ‘jquery’, NULL, TRUE);
wp_register_script(‘script.js’, get_stylesheet_directory_uri() . ‘/js/script.js’, ‘jquery’, NULL, TRUE);
}
wp_enqueue_script(‘jscroll-probe.js’);
wp_enqueue_script(‘script.js’);add_action( ‘wp_enqueue_scripts’, ‘joyn_child_enqueue_styles’ );
Thanks so much.
Learning loads.But still not working; this is what I have
/* LOAD PARENT THEME STYLES
================================================== */
function joyn_child_enqueue_styles() {
wp_enqueue_style( ‘joyn-parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘style.css’, get_stylesheet_directory_uri() . ‘/css/style.css’ );
wp_enqueue_style( ‘style.scss’, get_stylesheet_directory_uri() . ‘/css/style.scss’ );
}function sf_enqueue_scripts() {
wp_register_script(‘jscroll-probe.js’, get_stylesheet_directory_uri(). ‘/js/iscroll-probe.js’, ‘jquery’, NULL, TRUE);
wp_register_script(‘script.js’, get_stylesheet_directory_uri() . ‘/js/script.js’, ‘jquery’, NULL, TRUE);
}
add_action( ‘wp_enqueue_scripts’, ‘joyn_child_enqueue_styles’ );Thanks folks.
So I’ve read all the materials. Here is what I have in my functions.php file in my child theme. But it doesn’t seem like the libraries are being loaded:
I’ve put the js into
join-child/js/
and the css into
join-child/css//* LOAD PARENT THEME STYLES
================================================== */
function joyn_child_enqueue_styles() {
wp_enqueue_style( ‘joyn-parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘joyn-parent-style’, SF_LOCAL_PATH . ‘/css/style.css’ );
wp_enqueue_style( ‘joyn-parent-style’, SF_LOCAL_PATH . ‘/css/style.scss’ );
}function sf_enqueue_scripts() {
wp_register_script(‘jscroll-probe.js’, SF_LOCAL_PATH . ‘/js/iscroll-probe.js’, ‘jquery’, NULL, TRUE);
wp_register_script(‘script.js’, SF_LOCAL_PATH . ‘/js/script.js’, ‘jquery’, NULL, TRUE);
}
add_action( ‘wp_enqueue_scripts’, ‘joyn_child_enqueue_styles’ );Thanks so much Rui.
Would this work?function my_scripts_method() {
wp_enqueue_script(
‘jscroll-probe.js’,
get_stylesheet_directory_uri() . ‘/js/jscroll-probe.js’,
array( ‘jquery’ )
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_scripts_method’ );
I’d like to have a blog post open, instead of on another page, in an iframe (with the header and footer cut off)
like http://www.usatoday.com/Any idea how I might achieve this?
Just to add a +1 this would be a FANTASTIC addition.
Is there any chance we’ll be able to use custom fields in the spb sections?
For instance, i’d love to be able to have an spb section where I’ve written “And this is the ***” and have a field within the spb section where I can type in ***Ignore the above. I don’t know what happened; possibly zoom on my computer but I discoverd it was boxed; but for some reason it had got huge. Thanks.
See attached picture
Attachments:
You must be logged in to view attached files.It needs to be automatically changing size, not having a minimum height.
Great. Any chance you could ask for this to be fixed in a future version; it’s been driving me nuts for a year now!
I sorted it. I went thermonuclear and added a bunch of CSS. I bet half of this is pointless but here is what I added. I got sick of nothing working.
.bright-design figure.animated-overlay:hover,
.bright-design figure.animated-overlay:hover > img,
.bright-design figure.animated-overlay:hover .multi-masonry-img-wrap > img,
.bright-design figure.animated-overlay.overlay-alt:hover,
.bright-design figure.animated-overlay.overlay-alt:hover .figcaption-wrap {
-webkit-filter: none !important;
-moz-filter: none !important;
filter: none !important;
border-width: 0px !important;
border: 0px !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}Weird. It’s not working for me.
I changed the “mone” (typo) to none too.
But it’s still not working. Weird. Any ideas.July 8, 2015 at 4:47 pm in reply to: Swift Framework Shortcodes editor button yields 403: Forbidden #192876Did you manage to resolve this? if so, how? Having the same issue.
July 6, 2015 at 5:12 pm in reply to: Different widths; none of which are the width I specified #192117I’ve disabled the plugin and it’s still the same.
-