Adding data-markup-id


Hello I've tried searching but cant find the answer so here goes.

Whats the best way to add the markup-id on content that have appended ie.

// edit footer content
beans_modify_action_callback( 'beans_footer_content', 'beans_child_footer_content' );

function beans_child_footer_content() { ?>
    <div class="uk-container-center uk-text-small" >
        <div class="uk-grid">
            <div class="uk-width-large-1-2">
                <p class="uk-text-muted copyright">&copy; 2007 - <?php echo date('Y') ;?></p>
            </div>
        </div>

    </div>
    <?php };?>

Cheers

Neil


Hi Neil,

For that you have to write your HTML using the Beans HTML API. I would advise to take a look at this article which should be self-explanatory. Feel free to aks if anything is unclear and I will gladly answer any question you may have.

Thanks,


Thanks for the reply, I got it working now.

🙂

Write a reply

Login or register to write a reply, it's free!