Sarah Frisk
Forum Replies Created
-
AuthorPosts
-
Sarah FriskParticipant
I like the idea of a digital extra, and I’ve backed some artists that do the occasional extra digital reward (extra comic, illustration, video, etc), available to view starting at the $5 level.
Sarah FriskParticipantMy one note is I would be careful about promising to send stuff by mail, especially at the $5 level (although it looks like you just said ‘maybe’ by mail, but most rewards would be digital). Depending on the number of Patreon patrons you get at that level, mailing stuff could end up being a lot of work or it could end up being expensive.
Sarah FriskParticipantSo I’m not seeing the “About Bros in Space” image on your website – is there a way I could view it so I could maybe see what the code is doing?
September 8, 2016 at 9:34 am in reply to: Analytics weirdness! Extra 'index.html' & broken link! #17431Sarah FriskParticipantYay! Glad you got it to work.
September 7, 2016 at 1:29 pm in reply to: Analytics weirdness! Extra 'index.html' & broken link! #17420Sarah FriskParticipantI think this has to do with how analytics by default handles pretty urls. If you want to learn how to clean that stuff up, you need to tweak your google analytics settings a little bit.
This post is a little old, but it may help you write a filter to clean up your urls: http://www.lunametrics.com/blog/2010/12/17/cleaning-urls-google-analytics/
August 30, 2016 at 1:34 pm in reply to: Having an image that automatically displays the latest comic? #17367Sarah FriskParticipantI didn’t even notice that was an option :-/
August 24, 2016 at 10:30 am in reply to: Having an image that automatically displays the latest comic? #17307Sarah FriskParticipantThat header thing is weird, without looking closer at your setup for theme/plugins I can’t really tell – although it could be something in functions.php isn’t playing nicely.
When you move to the next chapter, you will want to change the URLS that it links to, and then also the cover image.
August 22, 2016 at 11:32 pm in reply to: Having an image that automatically displays the latest comic? #17299Sarah FriskParticipantSo the solution I have involves having to edit a php file every time your chapter changes to switch out the image/link, since it looks like you use a custom image for the cover of your chapter. This solution assumes you don’t already have a custom template for your homepage.
In your Child Theme, create a functions.php file and add the following:
<?php add_action( 'after_setup_theme', 'comicpress_child_theme_setup' ); function comicpress_child_theme_setup() { add_image_size( 'latest-post', 240, 336, true ); }
This adds a thumbnail size that is the size you need, and automatically crops it.
Create a file called home.php and add the following to it.
<?php /* Template Name: Home */ get_header(); $my_query = new WP_Query('post_type=comic&showposts=1'); ?> <p style="text-align: center; padding-bottom: 0;"> <a href="http://brosinspace.com/index.php/comic/symbiosis-1/"> <img class="alignnone wp-image-393" src="http://i0.wp.com/brosinspace.com/wp-content/uploads/2016/07/Symbiosis-Cover-V2-Shrunk.png?resize=240%2C336" alt="Symbiosis Cover V2 Shrunk" width="240" height="336"> </a> <?php while ($my_query->have_posts()) : $my_query->the_post();?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php the_post_thumbnail('latest-post') ?> </a> <?php endwhile; ?> </p> <p style="text-align: center; padding-top: 0"> <a href="http://brosinspace.com/index.php/comic/symbiosis-1/"><img class="alignnone wp-image-400" src="http://i1.wp.com/brosinspace.com/wp-content/uploads/2016/05/Currentpage.png?resize=240%2C80" alt="Currentpage" width="240" height="80"></a> <?php while ($my_query->have_posts()) : $my_query->the_post();?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="http://i1.wp.com/brosinspace.com/wp-content/uploads/2016/05/Recentpagebutton.png?w=240"></a> <?php endwhile; ?> </p> <?php if (comicpress_sidebars_disabled()) $content_width = comicpress_themeinfo('content_width_disabled_sidebars'); while (have_posts()) : the_post(); comicpress_display_the_content(); endwhile; get_footer();
On the Edit Page view for ‘http://brosinspace.com/’ – under “Page Attributes” you should be able to select the “Template” dropdown and choose “Home.” This template basically adds the “Current Story” and “Latest Post” images above whatever text you have on the page with the “Latest Post” image automatically being updated to the latest featured image + link, so you can take that part out of the page content.
Let me know how this works, I wrote this based on a basic version of comicpress since I wasn’t sure if there was anything special you’ve done to your child theme. To be safe, I wouldn’t remove the current “Current Story” and “Latest Post” images and links until you’re sure this solution works.
Sarah FriskParticipantGlad it worked!
Sarah FriskParticipantNo problem! Glad to help.
Sarah FriskParticipantThe Touch the Code Solution
In your child theme folder, create a folder called
functions.
Copy copyright.php into this folder.Change line 8 from:
$output .= __( 'Powered by', 'comicpress' ) . " <a href=\"http://wordpress.org/\">WordPress</a> " . __( 'with', 'comicpress' ). " <a href=\"http://frumph.net\">ComicPress</a>\r\n";
To
$output .= __( 'Powered by', 'comicpress' ) . " <a href=\"http://wordpress.org/\">WordPress</a> " . __( 'with', 'comicpress' ). " <a href=\"http://frumph.net\">ComicPress</a> on <a href=\"http://www.dreamhost.com/AFFILIATE_CODE\">Dreamhost</a>\r\n";
With “AFFILIATE_CODE” being the affiliate part of your dreamhost referral url.
This worked on my basic test I did, although I’m not certain if it was WordPress theme best practices – probably should have renamed the functions on copyright.php, and then change when ‘comicpress_copyright_text’ was being called in footer.php to the new function. However, this solution does seem to work.
- This reply was modified 7 years, 8 months ago by Sarah Frisk.
Sarah FriskParticipantThe not touching theme code solution
In Appearances->Widgets create a new text widget for the footer and insert the following in your new widget (do not give it a title)
<p class="copyright-info"> ©2013-2016 <a href="http://www.pacificacomic.com">Pacifica</a> <span class="footer-pipe">|</span> Powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://frumph.net">ComicPress</a> on <a href="URL HERE">Dream Host</a> <span class="footer-subscribe"><span class="footer-pipe">|</span> Subscribe: <a href="http://www.pacificacomic.com/feed/">RSS</a> </span> <span class="footer-uptotop"><span class="footer-pipe">|</span> <a href="" onclick="scrollup(); return false;">Back to Top ↑</a></span> </p>
(Replace “URL HERE” with your dreamhost affiliate url)
Then go to Appearance -> Comicpress Options, click on the ‘General’ tab, and click on ‘Disable the copyright text in the footer?’ and that will remove the existing footer on the website.
Downside to this solution, is you’ll have to manually update the copyright each year, but it does make it easier to directly edit your footer otherwise.
Sarah FriskParticipantIf you switch the margin to
margin: 0 0 1em;
it gives you roughly this spacing if this looks good to you:Sarah FriskParticipantOn line 4387 on your css you have this style declaration:
.widget { font-size: 12px; font-size: 1.2rem; margin: 0 0 20%; /* <--- change this */ padding: 0 20%; }
The
margin: 0 0 20%
is forcing the large margin (like 80px) below each of your widgets. Changing that 20% do a different number should shrink that space between ads.As a heads up, looks like you have a responsive theme, so the
.widget
styling is also in 2 other places for other screen sizes:line 2769:
.widget { margin-bottom: 11.1111%; /* <--- change this */ }
and line 1134:
.widget { color: #707070; color: rgba(51, 51, 51, 0.7); -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; hyphens: auto; margin: 0 auto 9.09090%; /* <--- change this */ width: 100%; word-wrap: break-word; }
Sarah FriskParticipantIt’s in one of the function files,
functions/copyright.php
.- This reply was modified 7 years, 8 months ago by Sarah Frisk.
-
AuthorPosts