Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • tobyschmidt

    (@tobyschmidt)

    Hi gabidedo,

    you need to set the background with an inline style:
    `<div style=’background-image: <?php echo esc_url( $attributes[‘control_name’][‘url’] ); ?>’>YOUR DIV CONTENT</div>

    Maybe the syntax is not correct, writing code on a phone can be difficult ??

    You could also use the WordPress wp_get_current_user() function in your PHP to get user ID, name, email,…

    Hey arturojofre,

    you need to know a little PHP to get the repeater and file block running. At first, you need to loop through the repeater (and children) and get every single file you placed in there. Then you need to build the download link itself with url and some text to be displayed as link.

    I made an example here to be imported to lazy blocks: https://gofile.io/d/iDktuA
    Go to your Lazy Blocks Plugin – Export/Import – Choose my sample file and upload it. Then you should be able to use this simple file list on your pages. Feel free to modify!

    Some further notes:

    • Make sure you have given a caption to your download files in media section. In my example, this is the text for the link. Without caption, there is an ’empty’ link and nothing is displayed
    • This is just a very basic version of a file list. You may add some more functions, limit allowed file typed and add some styling
    • For embedded file types such as audio or video you need to modify the output: do not output them as a link (<a>) but as <audio> or <video> according to HTML 5 standards.
    • This reply was modified 3 years, 11 months ago by tobyschmidt.
    tobyschmidt

    (@tobyschmidt)

    Hallo Alexander,

    bei mir in Safari Version 14.0 (15610.1.28.1.9, 15610) sieht deine Seite recht unproblematisch aus. Sowohl die Navigation, als auch der Footer werden –oberfl?chlich betrachtet – korrekt dargestellt.

    Beste Grü?e!

Viewing 4 replies - 1 through 4 (of 4 total)