Get Theme Url

Receive Topic URL

Summary: Use get_template_directory_uri() to refer only to the parent topic. Use get_stylesheet_directory_uri() to edit only the child topic. Use this for sub topics:

Get ting the URL of the topic in the prestashop's.tpl file&

get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), light light light light light light light'shop_name' => Konfiguration::get('PS_SHOP_NAME'), light light light light light light'roundMode' => (int)Konfiguration::

get('PS_PRICE_ROUND_MODE'), light light light light light light light light light light light light light light light light light light light light light light light light light light light light light light light (int) (Konfiguration::Light light light light light light light light light light light light light light light light light light light light Group::getCurrent()->show_prices), light light light light'b2b_enable' => (bool)Konfiguration::get('PS_B2B_ENABLE'), light light light light light light light light light light light light'request' => $link->getPaginationLink(false, false, true), light light light light light light light light light light light light light light light light light light light:

Worldpress: Wordpress: Short code for Topic Location / URL - Article

Occasionally, when we created a WordPress site for a customer, we had to add an artwork to a post/page that was in the Theme Book. Adding the entire URL to the topic list where the picture is stored can be quite painful.

Even if the name of the page URL or topic folder changes, the hard-coded pathname would immediately cause a corrupted picture. Another neat little gimmick to work around this issue is to generate a shortcut that outputs the topic list of a website autmatically. Just copy the following source into your theme's functions.php files and off you go.

Theme = ( is_child_theme() ? get_stylesheet_directory_uri(): get_template_directory_uri() ); return-$theme; add_shortcode('theme','theme_url_shortcode'); Just use the shortcode[theme] within a page or message and your topic URL will be displayed. You would do something like this if you referenced a picture in your post: What would spend something like this:

Auch interessant

Mehr zum Thema