{"id":572,"date":"2016-11-22T23:18:54","date_gmt":"2016-11-22T23:18:54","guid":{"rendered":"https:\/\/buddydev.com\/mediapress\/?p=572"},"modified":"2016-11-22T23:18:54","modified_gmt":"2016-11-22T23:18:54","slug":"overriding-mediapress-activity-upload-icons","status":"publish","type":"post","link":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/","title":{"rendered":"Overriding MediaPress Activity upload Icons"},"content":{"rendered":"<p>The activity upload icons can be overridden in the theme.<\/p>\n<p><strong>Default activity upload icons:-<\/strong><\/p>\n<p><a href=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-576\" src=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png\" alt=\"mediapress-activity-upload-icon\" width=\"501\" height=\"233\" srcset=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png 501w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-300x140.png 300w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-480x223.png 480w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n<p><strong>New activity upload icons:-<\/strong><\/p>\n<p><a href=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-577\" src=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new.png\" alt=\"mediapress-activity-upload-icon-new\" width=\"772\" height=\"280\" srcset=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new.png 772w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-300x109.png 300w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-768x279.png 768w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-272x100.png 272w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-480x174.png 480w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/a><\/p>\n<p>Steps to override the default icon with your own:-<\/p>\n<p>It&#8217;s important to understand how template\/asset overriding works in MediaPress. You copy a file from plugins\/mediapress\/templates\/mediapress\/default\/abc\/somefile.php and put it in your themes\/your-active-theme\/mediapress\/default\/abc\/somefile.php<\/p>\n<p><strong>Ex:-\u00a0<\/strong><\/p>\n<p><strong>plugin\/mediapress\/templates\/<\/strong>mediapress\/default\/somepath\/somefile.php -&gt; <strong>themes\/current-active-theme\/<\/strong>mediapress\/default\/somepath\/somefile.php<\/p>\n<p>Effectively, Anything that comes under mediapress\/templates goes to the root of the current active theme and you maintain the file hierarchy.<\/p>\n<p>Since\u00a0override is allowed for the upload icons, we can replace them in our theme.<\/p>\n<p>Here is screenshot showing the default icons in MediaPress plugin(note the path relative to the mediapress\/templates directory)<\/p>\n<p><a href=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-plugin-asset-locations.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-574\" src=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-plugin-asset-locations.png\" alt=\"mediapress-plugin-asset-locations\" width=\"1018\" height=\"200\" srcset=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-plugin-asset-locations.png 1018w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-plugin-asset-locations-300x59.png 300w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-plugin-asset-locations-768x151.png 768w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-plugin-asset-locations-480x94.png 480w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/a><\/p>\n<p>And we maintain\u00a0same hierarchy in our theme and replace the icons(again note the path relative to the current theme )<\/p>\n<p><a href=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-icon-override-location.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-575\" src=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-icon-override-location.png\" alt=\"mediapress-activity-icon-override-location\" width=\"766\" height=\"212\" srcset=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-icon-override-location.png 766w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-icon-override-location-300x83.png 300w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-icon-override-location-480x133.png 480w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/a><\/p>\n<p>Now, That&#8217;s easy. Here is what we get.<\/p>\n<p><a href=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-577\" src=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new.png\" alt=\"mediapress-activity-upload-icon-new\" width=\"772\" height=\"280\" srcset=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new.png 772w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-300x109.png 300w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-768x279.png 768w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-272x100.png 272w, https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon-new-480x174.png 480w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The activity upload icons can be overridden in the theme. Default activity upload icons:- New activity upload icons:- Steps to override the default icon with your own:- It&#8217;s important to understand how template\/asset overriding works in MediaPress. You copy a file from plugins\/mediapress\/templates\/mediapress\/default\/abc\/somefile.php and put it in your themes\/your-active-theme\/mediapress\/default\/abc\/somefile.php Ex:-\u00a0 plugin\/mediapress\/templates\/mediapress\/default\/somepath\/somefile.php -&gt; themes\/current-active-theme\/mediapress\/default\/somepath\/somefile.php Effectively, Anything &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8212],"tags":[],"class_list":["clearfix","post-572","post","type-post","status-publish","format-standard","hentry","category-mediapress-basics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Overriding MediaPress Activity upload Icons &#8226; MediaPress | BuddyDev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Overriding MediaPress Activity upload Icons &#8226; MediaPress | BuddyDev\" \/>\n<meta property=\"og:description\" content=\"The activity upload icons can be overridden in the theme. Default activity upload icons:- New activity upload icons:- Steps to override the default icon with your own:- It&#8217;s important to understand how template\/asset overriding works in MediaPress. You copy a file from plugins\/mediapress\/templates\/mediapress\/default\/abc\/somefile.php and put it in your themes\/your-active-theme\/mediapress\/default\/abc\/somefile.php Ex:-\u00a0 plugin\/mediapress\/templates\/mediapress\/default\/somepath\/somefile.php -&gt; themes\/current-active-theme\/mediapress\/default\/somepath\/somefile.php Effectively, Anything ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/\" \/>\n<meta property=\"og:site_name\" content=\"MediaPress | BuddyDev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bpdev\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-22T23:18:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png\" \/>\n\t<meta property=\"og:image:width\" content=\"501\" \/>\n\t<meta property=\"og:image:height\" content=\"233\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Brajesh Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sbrajesh\" \/>\n<meta name=\"twitter:site\" content=\"@buddydev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brajesh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/\",\"url\":\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/\",\"name\":\"Overriding MediaPress Activity upload Icons &#8226; MediaPress | BuddyDev\",\"isPartOf\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png\",\"datePublished\":\"2016-11-22T23:18:54+00:00\",\"author\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#primaryimage\",\"url\":\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png\",\"contentUrl\":\"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png\",\"width\":501,\"height\":233},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/buddydev.com\/mediapress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Overriding MediaPress Activity upload Icons\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#website\",\"url\":\"https:\/\/buddydev.com\/mediapress\/\",\"name\":\"MediaPress | BuddyDev\",\"description\":\"The Best Media Gallery Plugin For BuddyPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/buddydev.com\/mediapress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\",\"name\":\"Brajesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"contentUrl\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"caption\":\"Brajesh Singh\"},\"sameAs\":[\"http:\/\/buddydev.com\/members\/sbrajesh\/\",\"https:\/\/x.com\/sbrajesh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Overriding MediaPress Activity upload Icons &#8226; MediaPress | BuddyDev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/","og_locale":"en_US","og_type":"article","og_title":"Overriding MediaPress Activity upload Icons &#8226; MediaPress | BuddyDev","og_description":"The activity upload icons can be overridden in the theme. Default activity upload icons:- New activity upload icons:- Steps to override the default icon with your own:- It&#8217;s important to understand how template\/asset overriding works in MediaPress. You copy a file from plugins\/mediapress\/templates\/mediapress\/default\/abc\/somefile.php and put it in your themes\/your-active-theme\/mediapress\/default\/abc\/somefile.php Ex:-\u00a0 plugin\/mediapress\/templates\/mediapress\/default\/somepath\/somefile.php -&gt; themes\/current-active-theme\/mediapress\/default\/somepath\/somefile.php Effectively, Anything ...","og_url":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/","og_site_name":"MediaPress | BuddyDev","article_publisher":"https:\/\/www.facebook.com\/bpdev","article_published_time":"2016-11-22T23:18:54+00:00","og_image":[{"width":501,"height":233,"url":"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png","type":"image\/png"}],"author":"Brajesh Singh","twitter_card":"summary_large_image","twitter_creator":"@sbrajesh","twitter_site":"@buddydev","twitter_misc":{"Written by":"Brajesh Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/","url":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/","name":"Overriding MediaPress Activity upload Icons &#8226; MediaPress | BuddyDev","isPartOf":{"@id":"https:\/\/buddydev.com\/mediapress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#primaryimage"},"image":{"@id":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#primaryimage"},"thumbnailUrl":"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png","datePublished":"2016-11-22T23:18:54+00:00","author":{"@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb"},"breadcrumb":{"@id":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#primaryimage","url":"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png","contentUrl":"https:\/\/buddydev.com\/mediapress\/files\/2016\/11\/mediapress-activity-upload-icon.png","width":501,"height":233},{"@type":"BreadcrumbList","@id":"https:\/\/buddydev.com\/mediapress\/mediapress-basics\/overriding-mediapress-activity-upload-icons\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/buddydev.com\/mediapress\/"},{"@type":"ListItem","position":2,"name":"Overriding MediaPress Activity upload Icons"}]},{"@type":"WebSite","@id":"https:\/\/buddydev.com\/mediapress\/#website","url":"https:\/\/buddydev.com\/mediapress\/","name":"MediaPress | BuddyDev","description":"The Best Media Gallery Plugin For BuddyPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buddydev.com\/mediapress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb","name":"Brajesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/image\/","url":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","contentUrl":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","caption":"Brajesh Singh"},"sameAs":["http:\/\/buddydev.com\/members\/sbrajesh\/","https:\/\/x.com\/sbrajesh"]}]}},"_links":{"self":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":1,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":578,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/572\/revisions\/578"}],"wp:attachment":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}