Answer the question
In order to leave comments, you need to log in
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 codeecho 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' ) ) );
<img class="logo-retina" src="%s" />
</div>'
Answer the question
In order to leave comments, you need to log in
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%.
Try to simply superimpose one photo on another, i.e. one block to another.
The simplest margin-top: -20px (or whatever you need) for the text block.
<?
$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 questionAsk a Question
731 491 924 answers to any question