Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #871183

    Nick
    Participant

    Hello there

    ive a question

    where can i find the path to the .php file to insert a breadcrumb
    You see the attachment

    #871198

    Nick
    Participant

    my breadcrumb is not showing on the website

    http://d3.reprex.nl/

    #872141

    Rue Nel
    Moderator

    Hello 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.

    #872559

    Nick
    Participant

    Super thanks!!

    #872560

    Nick
    Participant

    Ive 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?

    #872561

    Nick
    Participant

    and make also the curant page clickable…

    http://d3.reprex.nl/shop/

    #873371

    Jade
    Moderator

    Hi 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?

    #879644

    Nick
    Participant

    Hi 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.php

    Line:

    
    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

    #879657

    Nick
    Participant

    What i also did has changed the files :

    wp-content/plugins/woocommerce/templates/single-product
    wp-content/themes/x/woocommerce/single-product/product-image.php

    what i must do to keep th files above, up-to-date also if i update a plugin or theme ?
    Kind regards

    product-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

    #880078

    Jack
    Keymaster

    Hi 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!

    #885955

    Nick
    Participant

    Thanks 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 ?

    #886650

    Rue Nel
    Moderator

    Hello 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.