lwc:wordpress

This is an old revision of the document!


 name/link comments 
 Wp facebook like button  requires you to like before you share. This is problematic as like doesn't work on some browser configurations (including Chrome by default) so share is not an option either. Doesn't take app id
 Facebook  it doesn't seem to grab an appropriate image consistently when sharing.
 jetpack  way overkill, and wants to see my personal profile on FB etc.
 Really simple Facebook Twitter share buttons they don't line up well so they look bad (easily fixed). Other than that, it could be a good alternative to Facebook plugin
WP Facebook Like Send & Open Graph Meta This does the Facebook like and share buttons, and handles all the open graph stuff for you, using the featured image as the image for sharing and having a default image. You have to add the app-id yourself in your html though. This is what I went with Aug 7, 2014

https://ninjaforms.com/gdpr-compliance-wordpress-forms/ with Contact Form 7: https://contactform7.com/acceptance-checkbox/

  • More CF7 info: https://contactform7.com/2018/04/16/how-to-make-privacy-friendly-contact-forms/#more-26352

wp privacy policy guide: https://filimin.com/wp-admin/tools.php?wp-privacy-policy-guide=1

Vimeo Video and generic images

There has to be a better way but for now the kludge is to embed video 2x.

  • 1st video set alignment to left and add the following to the custom CSS:
@media (max-width: 600px) {
 selector {
    display: none !important; 
 }
}
.alignleft {
  margin-top:0 !important;
  margin-bottom: 0 !important;
}
  • 2nd video keep alignment at none and add the following custom CSS:
@media (min-width: 601px) {
 selector {
    display: none !important;
  }
}

One catch is the keyword selector is replaced by the editor with .ticss-XXXXXX after saving so every time you reedit the post you have change .ticss-XXXXXX back to selector before saving again.

For generic images change the min-width settings as appropriate

  • lwc/wordpress.1668374368.txt.gz
  • Last modified: 2022/11/13 15:19
  • by John Harrison