N
N
nikfcsm2017-12-05 16:45:53
Layout
nikfcsm, 2017-12-05 16:45:53

How to insert shortcode tag into code(syntax)?

echo do_shortcode( '[wd_asp id=1]' )
Please help me insert the code correctly in syntax: in this code
echo do_shortcode( '[wd_asp id=1]' )

$site_name.= sprintf( '<div class="image-wrap image-flex" ><img class="logo-retina" src="%s" /></div>', esc_url( $logo_retina ), esc_attr( get_bloginfo( 'name' ) ) );

Must be inserted between
<img class="logo-retina" src="%s" />
</div>'

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Robert-critical-thoughts, 2019-09-21
@Mars1k

Everything is very simple:
Main block: position: relative;
Description block: The position: absolute. bottom: -20px
picture can be written either as a background, but it’s better to just

position: absolute, top:0, left: 0, height: 100%, width: 100%.

O
OctorberMyMonth, 2019-09-21
@OctorberMyMonth

Try to simply superimpose one photo on another, i.e. one block to another.

M
MarvinJan, 2019-09-21
@MarvinJan

The simplest margin-top: -20px (or whatever you need) for the text block.

A
Alexey Bille, 2017-12-05
@alexey_bille

<?
$site_name.= sprintf( '<div class="image-wrap image-flex" ><img class="logo-retina" src="%s" />' . do_shortcode( '[wd_asp id=1]' ) . '</div>', esc_url( $logo_retina ), esc_attr( get_bloginfo( 'name' ) ) );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question