Title: Dan Farrow - moved to @danfarrow's Replies | WordPress.org

---

# Dan Farrow - moved to @danfarrow

  [  ](https://wordpress.org/support/users/squarebracket/)

 *   [Profile](https://wordpress.org/support/users/squarebracket/)
 *   [Topics Started](https://wordpress.org/support/users/squarebracket/topics/)
 *   [Replies Created](https://wordpress.org/support/users/squarebracket/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/squarebracket/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/squarebracket/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/squarebracket/engagements/)
 *   [Favorites](https://wordpress.org/support/users/squarebracket/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/users/squarebracket/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/squarebracket/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/squarebracket/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Issue with attachment detail](https://wordpress.org/support/topic/issue-with-attachment-detail/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years ago](https://wordpress.org/support/topic/issue-with-attachment-detail/#post-6125781)
 * hi there,
    You could try re-generating the thumbnails: [https://wordpress.org/plugins/ajax-thumbnail-rebuild/](https://wordpress.org/plugins/ajax-thumbnail-rebuild/)
   Dan
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Animated Gif Resize] How do i resize the images that are placed in a gallery?](https://wordpress.org/support/topic/how-do-i-resize-the-images-that-are-placed-in-a-gallery/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-do-i-resize-the-images-that-are-placed-in-a-gallery/#post-5371342)
 * You probably fixed this already but if not try using another plugin to [rebuild your thumbnails](https://wordpress.org/plugins/ajax-thumbnail-rebuild/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Animated Gif Resize] Stopped working](https://wordpress.org/support/topic/stopped-working-99/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-99/#post-5551812)
 * hi there, I just [posted a note](https://wordpress.org/support/topic/working-but-throws-http-error?replies=1#post-6900762)
   about my experience with the plugin:
 * > I just tried the new plugin in 4.2.1 – it took me a while to realise that although
   > it appears not to work (WordPress displays an error message HTTP error when
   > I upload an animated gif), the uploaded image does actually appear in the media
   > library, still animated perfectly
 * Maybe the same thing is happening with your site?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Animated Gif Resize] Doesn't work in 4.2](https://wordpress.org/support/topic/doesnt-work-in-42/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-in-42/#post-6060639)
 * hi there, I just [posted a note](https://wordpress.org/support/topic/working-but-throws-http-error?replies=1#post-6900762)
   about my experience with the plugin:
 * > I just tried the new plugin in 4.2.1 – it took me a while to realise that although
   > it appears not to work (WordPress displays an error message HTTP error when
   > I upload an animated gif), the uploaded image does actually appear in the media
   > library, still animated perfectly
 * Maybe the same thing is happening with your site?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Swithcing content](https://wordpress.org/support/topic/swithcing-content/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/swithcing-content/#post-6060013)
 * You’re welcome, glad it worked out 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Swithcing content](https://wordpress.org/support/topic/swithcing-content/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/swithcing-content/#post-6060008)
 * Oh I see. Try this:
 *     ```
       <?php
           $summer = get_post_meta( get_the_ID(), 'summer', true );
           if ( !empty( $summer ) ):
       ?>
               <ul class="nav nav-tabs sc_tabs">
                   <li class="active"><a href="#winter">Winter</a></li>
                   <li class=""><a href="#summer">Summer</a></li>
               </ul>
       <?php
           endif;
       ?>
       ```
   
 * Then later in your page template:
 *     ```
       <?php
           if ( !empty( $summer ) ):
       ?>
               <div class="tab-pane clearfix" id="summer">
                   <?php echo( $summer ); ?>
               </div>
       <?php
           endif;
       ?>
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Swithcing content](https://wordpress.org/support/topic/swithcing-content/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/swithcing-content/#post-6060003)
 * hiya,
    I don’t really understand what you’re asking. What are you trying to achieve
   with the if statement? Dan
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to apply JS to a link on front-page.php?](https://wordpress.org/support/topic/how-to-apply-js-to-a-link-on-front-pagephp/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-apply-js-to-a-link-on-front-pagephp/#post-6049737)
 * What does the link on your front page point to? That’s what you want to password
   protect isn’t it?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Your Database is already up-to-date and locked out of dashboard](https://wordpress.org/support/topic/your-database-is-already-up-to-date-and-locked-out-of-dashboard/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/your-database-is-already-up-to-date-and-locked-out-of-dashboard/#post-6067083)
 * If you have either an FTP or Control Panel login for your hosting server you 
   could try renaming the .htaccess file in your site’s WordPress directory.
 * Renaming it to OLD.htaccess, for example, will temporarily disable it and may
   allow you to login.
 * I suggested this to somebody else with the same problem [a couple of days ago](https://wordpress.org/support/topic/problem-after-upgrade-cannot-get-to-dashboard?replies=11)
   and it helped them get back to the dashboard.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to apply JS to a link on front-page.php?](https://wordpress.org/support/topic/how-to-apply-js-to-a-link-on-front-pagephp/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-apply-js-to-a-link-on-front-pagephp/#post-6049726)
 * My ugly hack adds zero security, and will actually annoy most users.
 * WordPress’s password protection provides actual real security, it’s ready and
   waiting for you, and yes it works with pages too.
 * It’s a no-brainer I’d say 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error: Cannot redeclare class](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-8/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-8/#post-6064916)
 * You’re welcome!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Every edit to a post triggers a 'please moderate" email](https://wordpress.org/support/topic/every-edit-to-a-post-triggers-a-please-moderate-email/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/every-edit-to-a-post-triggers-a-please-moderate-email/#post-6064904)
 * The pingback request is expected behaviour, but the first issue is an odd one.
   Are there any other details in the email?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can't get javascript to work (Visual Composer)](https://wordpress.org/support/topic/cant-get-javascript-to-work-visual-composer/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-get-javascript-to-work-visual-composer/#post-6064893)
 * You’re welcome. Don’t consider those hours wasted – that’s how you’ll remember
   next time 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to apply JS to a link on front-page.php?](https://wordpress.org/support/topic/how-to-apply-js-to-a-link-on-front-pagephp/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-apply-js-to-a-link-on-front-pagephp/#post-6049713)
 * Here’s a very quick & dirty way of doing it:
 *     ```
       // Assuming your link has id="my_link"
       jQuery('#my_link').click(function( e ){
         return "password" == window.prompt( "Enter password" );
       });
       ```
   
 * Hope it helps
    Dan
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Swithcing content](https://wordpress.org/support/topic/swithcing-content/)
 *  [Dan Farrow – moved to @danfarrow](https://wordpress.org/support/users/squarebracket/)
 * (@squarebracket)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/swithcing-content/#post-6059906)
 * hi there, there are many ways of achieving this! It sounds as if your pages will
   need to include the HTML for both summer & winter content which can then be switched
   using a JavaScript toggle. So your final HTML markup might look something like
   this:
 *     ```
       <div class="summer-content">
           Summer stuff here...
       </div>
       <div class="winter-content">
           Winter stuff here...
       </div>
       ```
   
 * It would then be quite simple to write a script to toggle between these two.
 * As to how you manage this content from WordPress, the simplest way would be to
   just switch to text mode and add the HTML right there!
 * The next simplest option would be to add a custom field for the Winter content,
   then update your theme’s `loop.php` to output the post content & the custom field
   content wrapped in the appropriate HTML.
 * If you want it to be friendlier / less technical you could find a plugin that
   allows you to add nicely labelled custom fields to the Post edit page. I often
   use [Pods](http://pods.io) for this kind of thing but there are others available.
 * Hope that helps
    Dan

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/users/squarebracket/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/squarebracket/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/squarebracket/replies/page/2/?output_format=md)