simonsharayha
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Pictorico] How to Change post title tag from H1 to H2 ?I guess that worked! thank you!
another issue, now i want to change the widget title in the footer from h1 to h2 or h3 because by default they are H1Forum: Themes and Templates
In reply to: [Pictorico] How to Change post title tag from H1 to H2 ?Thank you Chad for your reply.
both code sections look the same, do you mean change every h1 to h2 in the code?
like this?
<?php if ( 'link' == $format ) : ?> <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( pictorico_get_link_url() ) . '" rel="bookmark">', '</a></h2>' ); ?> <?php else : ?> <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?> <?php endif; ?>
Forum: Themes and Templates
In reply to: [Pictorico] add timer to featured post (slider)the site crashes if i make this
simonsharayha Member Posted 2 days ago # add that code in functions.php didnt work i added it like this <?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } function pictorico_child_scripts() { if ( pictorico_has_featured_posts( 1 ) ) { wp_dequeue_script( 'pictorico-script' ); wp_enqueue_script( 'pictorico_child-script', get_stylesheet_directory_uri() . '/js/pictorico.js', array( 'pictorico-slider-script' ) ); } } add_action( 'wp_enqueue_scripts', 'pictorico_child_scripts' ); And this is what your child theme /js/pictorico.js file should look like. jQuery(document).ready( function($) { $( '.flex-viewport-wrapper' ).flexslider( { animation: "slide", slideshow: true, animationLoop: true, controlNav: false, directionNav: true, carousel: false, itemMargin: 0, slideshowspeed: 5000, } ); });
I had to back replace the function.php from the back up to get it on
Forum: Themes and Templates
In reply to: [Pictorico] add timer to featured post (slider)add that code in functions.php didnt work
i added it like this<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?> function pictorico_child_scripts() { if ( pictorico_has_featured_posts( 1 ) ) { wp_dequeue_script( 'pictorico-script' ); wp_enqueue_script( 'pictorico_child-script', get_stylesheet_directory_uri() . '/js/pictorico.js', array( 'pictorico-slider-script' ) ); } } add_action( 'wp_enqueue_scripts', 'pictorico_child_scripts' ); And this is what your child theme /js/pictorico.js file should look like. jQuery(document).ready( function($) { $( '.flex-viewport-wrapper' ).flexslider( { animation: "slide", slideshow: true, animationLoop: true, controlNav: false, directionNav: true, carousel: false, itemMargin: 0, slideshowspeed: 5000, } ); });
didnt work
Forum: Themes and Templates
In reply to: [Pictorico] add timer to featured post (slider)I did that in the pictario.js where i changed
slideshow: false,
to
slideshow: true,
Forum: Themes and Templates
In reply to: [Pictorico] add timer to featured post (slider)child theme sir.
yes sir, i did all of that ??Forum: Themes and Templates
In reply to: [Pictorico] add timer to featured post (slider)I tried to add 5 seconds on that line, didnt work
jQuery(document).ready( function($) {
$( ‘.flex-viewport-wrapper’ ).flexslider( {
animation: “slide”,
slideshow: true,
animationLoop: true,
controlNav: false,
directionNav: true,
slideshowspeed: 5000,
carousel: false,
itemMargin: 0,
} );});
Forum: Themes and Templates
In reply to: [Pictorico] add timer to featured post (slider)i created what kathryn said!
i changed false to true, now what ?Awesome! it worked!!
but i had a problem but i solved it.
the child theme didnt have any preview so i just went to the original files of the theme and updated the content-home and saved it. (i made a backup)
and all good now :))) thanks love it!
thats awesome! it’s gonna be my first time doing this! i will do my best!
and will let you know for sure!Thanks!
Forum: Themes and Templates
In reply to: [Pictorico] Theme Sliderit worked!! yaay! finally
iv’e been struggling!
if i have other question on different things? should I create a new forum?