Code Monkey home page Code Monkey logo

Comments (1)

cogdog avatar cogdog commented on August 22, 2024

You don't want to edit the CSS, but add CSS that overrides it, so this would go into the ds106bank.css file as additional styles (I put a comment in the top to suggest a place to insert). You should make sure you have a copy somewhere of what you use, as future updates will overwrite this file.

To style the heading (in bold):

#examplemedia strong {
    font-size: 20px;
    font-color: pink;
}

To center the heading and URL:

.example-url {
    text-align: center;
}

To style the link:

.example-url a {
    font-size: 18px;
}

It already has the feature to do a media embed, if the URL points to something Wordpress can autoembed -YouTube, vimeo, twitter, soundcloud, flickr- this code in functions.php shows what URLs we autoembed:

    $allowed_embeds = array(
                    'youtube.com/watch?',
                    'youtu.be',
                    'flickr.com/photos',
                    'flic.kr',
                    'vimeo.com', 
                    'soundcloud.com',
                    'instagram.com',
                    'twitter.com',
                    'vine.co',
                    'imgur.com',
                    'animoto.com'
    );

See these examples

http://udg.theagoraonline.net/bank/assignments/message-acapella-style

http://udg.theagoraonline.net/bank/assignments/mood-tone-generator

from ds106bank.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.