Tagged: x
-
AuthorPosts
-
April 7, 2016 at 8:52 am #871183
Hello there
ive a question
where can i find the path to the .php file to insert a breadcrumb
You see the attachmentApril 7, 2016 at 9:03 am #871198my breadcrumb is not showing on the website
April 7, 2016 at 8:20 pm #872141Hello There,
Thanks for writing in! To be able to display the breadcrumb, you may go to your customizer, Appearance > Customize > Header > Miscellaneous and you can find the option to turn on the Breadcrumbs.
Hope this helps.
April 8, 2016 at 4:54 am #872559Super thanks!!
April 8, 2016 at 5:02 am #872560Ive installed allready a child theme
now im wondering. can i change that “house icon” into a Text link?
I have a FTP program so im able to edit a little PHP code or something?
i want to little customize that “breadcrumb” session?April 8, 2016 at 5:05 am #872561and make also the curant page clickable…
April 8, 2016 at 4:51 pm #873371Hi there,
Please use this code:
.x-breadcrumbs .home .x-icon-home:before { content: "Home"; }
As for making the shop page clickable would you mind clarifying what you are aiming to do?
April 13, 2016 at 4:17 am #879644Hi there,
I allready find some solution and the path where i can find the hard-coded breadcrumbs.
The reason i want to edit is because i want extra SEO solution for this. and add a TITLE=”” Attribute into the webshop.PICTURE –> https://gyazo.com/c617fd817bf8e4cd5690d7602459ce6b <–
in this file you see the solution and why
Where i edit:
wp-content/themes/x/framework/functions/global/breadcumbs.phpLine:
echo '<div class="x-breadcrumbs" title="Webshop"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter;
My question is :
IF i update X, the file that i changed also rewrite ? and my settings / code is away?
If so, how do i copy this files and keep this as my “standard” ?I hope you guys know what i mean.
Kind regards
Nick
April 13, 2016 at 4:25 am #879657What i also did has changed the files :
wp-content/plugins/woocommerce/templates/single-product
wp-content/themes/x/woocommerce/single-product/product-image.phpwhat i must do to keep th files above, up-to-date also if i update a plugin or theme ?
Kind regardsproduct-image.php:
`$maat = get_post_custom_values($key = ‘MaatTabel’);
<img src=”‘ .$maat[0]. ‘” />’, $image_link, $image_title, $image ), $post->ID );`single-product:
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <p class="pricepimpin"><?php echo $product->get_price_html(); ?></p> <meta itemprop="price" content="<?php echo esc_attr( $product->get_price() ); ?>" /> <meta itemprop="priceCurrency" content="<?php echo esc_attr( get_woocommerce_currency() ); ?>" /> <link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" /> </div>
I hope you guys can help me out
April 13, 2016 at 9:21 am #880078Hi there,
Thanks for writing back!
Rather than overwriting the parent theme files (X), create a child theme and then duplicate those files in the child theme with your changes, with the originals left in the child theme.
For customizing a WooCommerce template, you’d do the same, copy the template you want to change to your child theme and leave the original template in WooCommerce untouched, that way you won’t lose your changes on a plugin or theme update. 🙂
Thank you!
April 16, 2016 at 12:47 pm #885955Thanks jack,
It also depents for this map
wp-content/plugins/woocommerce/templates/single-product ?
because i edited that file also
but i see, that its a PLUGINS folder, and not the THEME directory
this make matter ?
April 17, 2016 at 5:47 am #886650Hello There,
if the location of the file you customized is this:
wp-content/plugins/woocommerce/templates/single-product
You will need to placed it in your child theme’s folder in this order;
wp-content/themes/x-child/woocommerce/single-product
For more details on how you can customize WooCommerce templates, you can check it here: https://docs.woothemes.com/document/template-structure/
Hope this helps.
-
AuthorPosts