Title: CSS styles for embeded posts andpages
Last modified: April 11, 2017

---

# CSS styles for embeded posts andpages

 *  [Per Mattsson](https://wordpress.org/support/users/miunpermattsson/)
 * (@miunpermattsson)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/css-styles-for-embeded-posts-andpages/)
 * Hi there,
    I’m setting styles on a inhouse project. We have linked to pages and
   posts just by pasting in the link to the page. That in itself works fine and 
   WP makes an embed box [class .wp-embed ] using the styles that are in the file‘
   siteroot > wp-includes >embed.php’
 * However we care alot about our visual identity so I want to style the box, it’s
   headline, fonts, line-heights – the lot basically. While this is fully doable
   as soon as there are an update my changes and styles are of course resetted.
 * Also if I just link to a css file sitting in the theme folder that link will 
   be broken with an update of the file ’embed.php’ .
 * Is there a way for me to move those styles and templates to the theme directory?
   Maybe into the functions file? Or is there some other approach to styling the
   embed boxes?
 * regards, Per Mattsson

Viewing 1 replies (of 1 total)

 *  Thread Starter [Per Mattsson](https://wordpress.org/support/users/miunpermattsson/)
 * (@miunpermattsson)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/css-styles-for-embeded-posts-andpages/#post-9017979)
 * I forgot:
    I’ve found the link below but it seems not to be working in 4.7x
 * [https://www.ostraining.com/blog/wordpress/embed-theming/](https://www.ostraining.com/blog/wordpress/embed-theming/)

Viewing 1 replies (of 1 total)

The topic ‘CSS styles for embeded posts andpages’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [wp embed](https://wordpress.org/support/topic-tag/wp-embed/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Per Mattsson](https://wordpress.org/support/users/miunpermattsson/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/css-styles-for-embeded-posts-andpages/#post-9017979)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
