Skip to content
Discussion options

You must be logged in to vote

Hi,

You don't need to change functions.php, just change your theme template file: main.html.php post.html.php and profile.html.php

For example, if you use doks theme you will find below code in post.html.php

<?php if(!empty($post->audio)):?>
    <iframe width="100%" height="200px" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $post->audio;?>&amp;auto_play=false&amp;visual=true"></iframe>
<?php endif;?>

Change it to (use the example embed code from bandcamp):

<?php if(!empty($post->audio)):?>
    <iframe style="border: 0; width: 350px; height: 470px;" src="<?php echo $post->audio;?>" seamless></iframe>
<?php endif;?>

Late…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@usernameit
Comment options

Answer selected by usernameit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants