{"id":3438,"date":"2025-03-06T01:53:31","date_gmt":"2025-03-06T01:53:31","guid":{"rendered":"https:\/\/jrdingwall.ca\/blogwall\/?p=3438"},"modified":"2025-03-06T21:46:12","modified_gmt":"2025-03-06T21:46:12","slug":"get-that-bird-off-your-book-a-how-to","status":"publish","type":"post","link":"https:\/\/jrdingwall.ca\/blogwall\/get-that-bird-off-your-book-a-how-to\/","title":{"rendered":"Get That Bird Off Your Book (a how-to)"},"content":{"rendered":"<p>I had a question come in recently about how to deal with social media icons, and share buttons, on a Pressbook. There is one social media platform in particular that was at the root of the question. So I&#8217;m cataloging here for authors, editors, network admins, etc. a few different approaches you could take.<\/p>\n<h2>Option 1: Use the Theme Options Button<\/h2>\n<p>If you have a certain level of permissions on your Pressbook, you should be able to see\u00a0<em>appearance &gt; theme options<\/em> when you enter the admin view of your book (i.e. logged in). From there find the\u00a0<em>Web Options<\/em> tab. Finally, you can uncheck the box that says\u00a0<em>Enable Social Media.<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3445 size-large\" src=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/uncheck-enable-social-media-1-1024x736.jpg\" alt=\"a screen capture showing appearance, theme options, web options, enable social media checkbox\" width=\"1024\" height=\"736\" srcset=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/uncheck-enable-social-media-1-1024x736.jpg 1024w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/uncheck-enable-social-media-1-300x216.jpg 300w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/uncheck-enable-social-media-1-768x552.jpg 768w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/uncheck-enable-social-media-1.jpg 1123w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>This setting removes all the share buttons <strong>from this location<\/strong> on the front page. Some networks have just one social icon, others will have multiples. This checkbox gets rid of them all.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3440 size-large\" src=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/removes-share-icon-875x1024.jpg\" alt=\"the coverpage or homepage of a pressbook site. an arrow points at a crossed out social media icon\" width=\"875\" height=\"1024\" srcset=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/removes-share-icon-875x1024.jpg 875w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/removes-share-icon-256x300.jpg 256w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/removes-share-icon-768x899.jpg 768w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/removes-share-icon.jpg 1124w\" sizes=\"auto, (max-width: 875px) 100vw, 875px\" \/><\/p>\n<p>That part is easy. The next is a bit more difficult, requiring us to use a little CSS. Don&#8217;t worry though it&#8217;s not too bad.<\/p>\n<h2>Option 2: Using CSS to remove the social icon in the footer<\/h2>\n<p>The network your book is on may have it&#8217;s own social links. As an author, I believe you should have some control over what links appear next to your work, and you&#8217;re in luck. Even though the network manager manages the footer, you can make some basic changes to the footer for your own work. An example of the social media links I&#8217;m talking about are in the lower right if you&#8217;re viewing on a computer (rather than mobile).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3441 size-large\" src=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/footer-social-icons-1024x705.jpg\" alt=\"a screen capture of the metadata and footer of a pressbook. a yellow arrow is pointing at social media icons. \" width=\"1024\" height=\"705\" srcset=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/footer-social-icons-1024x705.jpg 1024w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/footer-social-icons-300x207.jpg 300w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/footer-social-icons-768x529.jpg 768w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/footer-social-icons.jpg 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Unlike the\u00a0<em>Enable Social Media<\/em> checkbox, we can be more deliberate about the links we remove in the footer in case you want to be specific about which one(s) you remove. Head back to your book&#8217;s dashboard, and if you have the permissions you need, you&#8217;ll see\u00a0<em>appearance &gt; custom styles<\/em> and check that you&#8217;re editing styles for\u00a0<em>web<\/em>. If you go down on the page you&#8217;ll find a section called\u00a0<em>Your Web Styles<\/em>. This is where you can customize a lot in Pressbooks. For this example I&#8217;ll remove the Twitter icon using CSS. We call out the element and set the display to &#8220;none&#8221; to make it disappear.<\/p>\n<div class=\"dm-code-snippet dark default  dm-slim-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-css\">\n<pre class=\"dm-pre-admin-side\">.twitter {\r\ndisplay:none\r\n}<\/pre>\n<\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3446 size-large\" src=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/css-footer-display-none-1-1024x842.jpg\" alt=\"a screenshot of the custom styles page in pressbooks. the css code is magnified. \" width=\"1024\" height=\"842\" srcset=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/css-footer-display-none-1-1024x842.jpg 1024w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/css-footer-display-none-1-300x247.jpg 300w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/css-footer-display-none-1-768x631.jpg 768w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/css-footer-display-none-1.jpg 1123w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>The CSS I have above the example calls our &#8220;sharer&#8221; which is the CSS element for what that checkbox in option 1 controls. If you want to hide all the footer social media without having to figure out all of their classes (the way we point to the item) you could get rid of all sharing in the footer.<\/p>\n<div class=\"dm-code-snippet dark default  dm-slim-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-css\">\n<pre class=\"dm-pre-admin-side\">.footer__pressbooks__social {\r\ndisplay:none\r\n}<\/pre>\n<\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<h3>Update<\/h3>\n<p>I mentioned that I played with hiding the top of page share buttons using CSS and that if you have multiple (i.e. many Pressbooks networks include Twitter, LinkedIn, and eMail) this approach would remove all three. You may be able to target them by including an additional identifier in square brackets.<\/p>\n<div class=\"dm-code-snippet dark default  dm-slim-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-css\">\n<pre class=\"dm-pre-admin-side\">.sharer[data-sharer=\"twitter\"] {\r\n    display: none;\r\n}<\/pre>\n<\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<p>This may maintain the LinkedIn and eMail buttons while getting that bird off your book.<\/p>\n<h2>Ok, but maybe I do want to share on SOME social media<\/h2>\n<p>One example I can show for this case is to place it in your book&#8217;s short description. You don&#8217;t get the social media icon, because we&#8217;ve turned off the <em>Enable Social Media<\/em> option. Some networks have multiple things here, such as Twitter, LinkedIn, and even email. If we turn off the\u00a0<em>Enable Social Media<\/em> we lose all three. And in that part of the homepage for your book, even the CSS option is all or nothing. So what we can do is make our own link. The short description of your book is what appears at the top of the homepage. To find it, go back into the dashboard for your book and look at the menu for\u00a0<em>Book info.\u00a0<\/em>Then scroll down the page until you find\u00a0<em>About the Book &gt; Short Description<\/em>. This textbox is not a rich text editor like when you&#8217;re writing chapters. However it does allow us to use HTML that will display to your readers.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3444 size-large\" src=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/short-description-1-1024x572.jpg\" alt=\"screenshot of pressbooks book info editor\" width=\"1024\" height=\"572\" srcset=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/short-description-1-1024x572.jpg 1024w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/short-description-1-300x167.jpg 300w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/short-description-1-768x429.jpg 768w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/short-description-1-1536x857.jpg 1536w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/short-description-1.jpg 1838w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>You can drop in your short description as plain text. For the links you have a few options. The approach I used was to make a link that would drop a basic post similarly to the old share buttons we removed. We&#8217;ll use LinkedIn as an example.<\/p>\n<div class=\"dm-code-snippet dark default  dm-slim-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"line-numbers\"><code id=\"dm-code-raw\" class=\"wrap language-php\">\n<pre class=\"dm-pre-admin-side\">&lt;a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=[YOUR-URL-HERE]&amp;title=Check out this great book on Pressbooks&amp;summary=Great book on Pressbooks\" target=\"_blank\"&gt;Share on LinkedIn &amp;#10150;&lt;\/a&gt;<\/pre>\n<\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<p>What does this HTML do?<\/p>\n<ol>\n<li>First we have the main link that shares the &#8216;article&#8217; |\u00a0<strong>https:\/\/www.linkedin.com\/shareArticle?mini=true<\/strong><\/li>\n<li>We follow that with your book&#8217;s URL |\u00a0<strong>&amp;url=[YOUR-URL-HERE]<\/strong> | replace the everything there up to and including the square brackets with your book&#8217;s URL<\/li>\n<li>The next is the post stub |\u00a0<strong>&amp;title=Check out this great book on Pressbooks&amp;summary=Great book on Pressbooks&#8221;<\/strong><\/li>\n<li>We have it open in a new tab |\u00a0<strong>target=&#8221;_blank&#8221;<\/strong><\/li>\n<li>We have the text your readers see |\u00a0<strong>Share on LinkedIn<\/strong><\/li>\n<li>Finally, a little icon can be included, in this case a right curved arrow |\u00a0<strong>&amp;#10150;<\/strong><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3447 size-large\" src=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/html-share-links-1024x598.jpg\" alt=\"\" width=\"1024\" height=\"598\" srcset=\"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/html-share-links-1024x598.jpg 1024w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/html-share-links-300x175.jpg 300w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/html-share-links-768x448.jpg 768w, https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/html-share-links.jpg 1223w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>A few options I played with included a chain link, a little arrow, and the outbox icon. You could use any of those too.<\/p>\n<ul>\n<li>link: &amp;#128279;<\/li>\n<li>up to the right arrow: &amp;#x2197;&amp;#xFE0E;<\/li>\n<li>outbox: &amp;#x1F4E4;<\/li>\n<\/ul>\n<p>Enjoy!<\/p>\n<hr \/>\n<p>Photo by <a href=\"https:\/\/unsplash.com\/@olia?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Olia Gozha<\/a> on <a href=\"https:\/\/unsplash.com\/photos\/white-book-marker-on-book-page-J4kK8b9Fgj8?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash\">Unsplash<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a question come in recently about how to deal with social media icons, and share buttons, on a Pressbook. There is one social media platform in particular that was at the root of the question. So I&#8217;m cataloging here for authors, editors, network admins, etc. a few different approaches you could take. Option [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3448,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"webmentions_disabled":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16],"tags":[98,96,97],"class_list":["post-3438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-educational-technology-and-design","tag-css","tag-html","tag-pressbooks"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/jrdingwall.ca\/blogwall\/files\/2025\/03\/olia-gozha-J4kK8b9Fgj8-unsplash.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/posts\/3438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/comments?post=3438"}],"version-history":[{"count":3,"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/posts\/3438\/revisions"}],"predecessor-version":[{"id":3453,"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/posts\/3438\/revisions\/3453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/media\/3448"}],"wp:attachment":[{"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/media?parent=3438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/categories?post=3438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jrdingwall.ca\/blogwall\/wp-json\/wp\/v2\/tags?post=3438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}