Home Forums Backend Issues (wp-admin) Customize custom field CSS – PHP


Customize custom field CSS – PHP

  • Hi,

    I’m not the best programmer. But i can do some 🙂
    Unfortunately there is one point that i don’t get done.

    I have created a custom field, and it is showed on the product page.
    Now i want add some padding, and style the custom field. This is the point where it get’s stuk.

    We are trying to echo a field in the function PHP so we can customize the custom field in the custom css of the theme.
    Unfortunately we don’t get it done.

    add_action( ‘woocommerce_share’, function() {
    echo the_field(‘video’);
    }, 40);

    Can anybody advice us what we need to add to the code in the Function.PHP so we can call it in the custom CSS?

    Thanks in advance,

Viewing 1 post (of 1 total)

The topic ‘Customize custom field CSS – PHP’ is closed to new replies.