Move Subscribe Link to Top for Mobile
-
The side links on our site show up at the bottom on mobile, and this is a problem because most people subscribe to podcasts on their phones. So, I want the links to show up at the top on mobile, particularly the Subscribe link. What do I need to do to make this happen?
The blog I need help with is: (visible only to logged in users)
-
Hi there, typically this doesn’t work out well on responsive themes, such as Capoverso, but I was able to do this because the header area stays the same height on all screens/window widths. The following uses a Media Query to limit this to 767px and narrower screens, which is when the sidebar moves to the bottom below the content. I’ve set a slightly translucent color for the background of the follow button so that it stands out a bit more. I tried making it the same width as the black area for the title, but that doesn’t work when we use position: absolute, as we have to do in order to move the widget.
@media screen and (max-width: 767px) { #follow_button_widget-3 { position: absolute; top: 370px; width: 100%; text-align: center; background: rgba(0, 0, 0, 0.7); padding-top: 6px; } #follow_button_widget-3 iframe { max-width: 65px; } #page { position: relative; } .content-area { padding-top: 15px } } -
-
Also, I don’t want the WordPress Follow link at the top, but rather the Subscribe link on the right for people to subscribe to the podcast.
-
Ah, you are talking about the Subscribe Menu Item. We can make a couple minor edits to the code I gave above and do that. Add the following to your custom CSS and see what you think.
@media screen and (max-width: 767px) { .page-item-35 { position: absolute; top: 370px; width: 100%; text-align: center; background: rgba(0, 0, 0, 0.7); padding-top: 6px; } #follow_button_widget-3 iframe { max-width: 65px; } #page { position: relative; } .content-area { padding-top: 15px; } .page-item-35 a { color: #fff; font-weight: bold; } }
- The topic ‘Move Subscribe Link to Top for Mobile’ is closed to new replies.