• HiHo
    since my shop runs as a section in my website i need a different “title / bloginfo” for the shop than for the rest of the website.
    Bloginfo-Website:”M. Jeroch (Artistik | Moderation | Kabarett) Berlin”
    Bloginfo-shop should be: “Jeroch Verlag”

    I guess this can be done by copying the header.php into my childtheme and then using some kind of conditional tag for “title” or so, correct?

    Can anyone help me to get that done since my php-knowledge is really low.

    Regards bydlo

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • That sounds like hard work, someone must have covered it in a plugin.

    What you are asking for is two types of post, but core WP only provides for one type, so the first task is to setup a custom post type for the shop posts.
    https://wordpress.org/plugins/custom-post-type-ui/
    This should provide a new dashboard menu item for the new post type, though the list and edit screens will be very similar.

    To display your custom posts, you can use a shortcode on a plain page. This plugin allows you to specify your custom post type name.
    https://wordpress.org/plugins/display-posts-shortcode/

    There may be similar plugins if you scour the plugins repository.

    Thread Starter bydlo

    (@bydlo)

    I am not sure if i was explaining correct but maybe i dont understand what you mean.

    Any product is already a custom post type, no?
    Why not something like:
    If is woocommerce —> title XY
    If else –> title AB
    https://docs.woocommerce.com/document/conditional-tags/

    Sorry if i am too dumb…

    Sorry, I was on completely the wrong track.

    Unfortunately you’re using a commercial theme and the code for these is not available to wordpress.org forum members, so I don’t think its possible to give exact code. Your if statement would be something like:

    if( is_woocommerce() || is_cart() || is_checkout() ) {
    
    } else {
    
    }

    Another approach would be to use css.

    .woocommerce .logo,
    .woocommerce-page .logo {
      background-image: url("https://marcusjeroch.de/wp-content/uploads/2015/09/referenzen.jpg");
    }
    .woocommerce .logo img,
    .woocommerce-page .logo img {
      visibility:hidden;
    }

    The background image would be your woocommerce pages logo and must be the same size as the normal one. The logo link won’t change though.

    Thread Starter bydlo

    (@bydlo)

    Hi Lorro
    sorry that my english is so bad and that i may waste your time.

    The problem is NOT about design.

    After an order woocommerce sends an email to the customer.
    In these emails you find things like:
    “Hi there. Your recent order on M. Jeroch (Artistik | Moderation | Kabarett) Berlin has been completed.”
    M. Jeroch (Artistik | Moderation | Kabarett) Berlin is the blogtitle.
    But it should be like this:
    “Hi there. Your recent order on Jeroch Verlag has been completed.”

    So my first idea was to use the header.php and do something like an “if is” but in the header of the theme there is just the hook “wp_head();”

    Now i try to edit the email-templates.
    This seems to be a litte bit more easy but if you know a technic to provide a second “blogtitle” in condition i would be keen to know.

    Regards bydlo

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Different “bloginfo” for shopsection’ is closed to new replies.