Corbett Enders
Forum Replies Created
-
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Different approach to imagesActually, I don’t think it is the lightbox that is the problem. This piece of code:
<?php echo esc_attr( $this->image ); ?>
is linking to a 600×600 image in most cases, but not all. Yet, the item photo I choose is not cropped to that size…
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Different approach to imagesSorry, I’m high jacking the image code and am calling a full size image when the user clicks a small camera icon. The camera icon links to a media item.
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Different approach to images@fivestarplugins can you please tell me how I can trigger your lightbox?
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Different approach to imagesIt is part of the theme I’m using. How do I go about using your lightbox?
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] Changing font in PDFI’ve figured out (for now) how to manually define fonts to be used by your script. I’m going to document it here for anyone who needs this assistance until such time that your script will allow for some customization. I love your script, I hope you continue to develop it.
First, ensure the font file you have is a true type font. I wasted a fair bit of time because my .TTF file was actually open type font. I found an online converter.
Inside send-pdf.php (classes folder), make the following adjustments.
Look for the following line in / around line 643:
$mpdf = new \Mpdf\Mpdf([‘mode’ => ‘utf-8’,……
Add to that list of configuration variables the following (replacing the font file name and the font friendly name with your own requirements):
‘fontDir’ => array_merge($fontDirs, [WPCF7PDF_DIR . ‘/fonts’,]),
‘fontdata’ => $fontData + [‘futurastdlight’ => [‘R’ => ‘FuturaStdLight.ttf’]],
‘default_font’ => ‘futurastdlight’,Create a ‘fonts’ folder inside the root of the send-pdf-for-contact-form-7 folder in your webserver and upload your font file to that folder.
This changes the entire font using in the PDF. I could not figure out how to use CSS styling within the plugin body itself where you create the PDF layout.
Referenced these instructions: https://mpdf.github.io/fonts-languages/fonts-in-mpdf-7-x.html
- This reply was modified 5 years, 7 months ago by Corbett Enders.
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] Changing font in PDFThe font menu seems to default to DejaVuSans yet the only fonts I see in my PDF are DejaVuSerif.
So I don’t believe it is working but I’d also love to be able to reference a custom font either in the HTML or CSS. I believe mPDF supports this.
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] Changing font in PDFAwesome, I see a font menu and size. Can I add to the list of fonts somehow?
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] How can i remove the white space on top of pdf?It would seem that the settings for “Margin Header” and “Margin Top Header” don’t do anything? I actually need a header for the graphic image and changing those values (in the gui) seems to adjust nothing. I’d rather not edit the php directly as it’ll be overwritten on an update.
This is what I had to do in order to have a checkbox appears as checked inside the PDF.
My Form contains the following checkbox:
[checkbox electrical “checked”] Test all the GFCI plugs both inside and outside.
My PDF section contains the following:
<input type=”checkbox” name=”electrical” [electrical]=”[electrical]”> Test all the GFCI plugs both inside and outside.
So essentially the PDF input is seeing checked=”checked” in the input tag. No other variation of using “1” or “yes” or even the proper HTML standard of just having the word “checked” appear in the input tag would work.
Forum: Themes and Templates
In reply to: [Storefront] Deleting Storefront Directory*will not lose your products. Storefront is just the looks of your site. Data is stored in the WordPress database.
Forum: Plugins
In reply to: [PayPal for WooCommerce] In-context checkoutUse this plugin instead. The customer will never leave your site.
Forum: Themes and Templates
In reply to: [Storefront] Where is shop page’s area?It’d be so much easier to just give the URL instead of bitching about it. https://goodealu.com/home/
But ok, go ahead and bitch and see if anyone wants to help you.
Forum: Themes and Templates
In reply to: [Storefront] Can’t Remove Storefront breadcrumbsYou could also try
add_action( ‘init’, ‘jk_remove_storefront_breadcrumb’ );
function jk_remove_storefront_breadcrumb() {
remove_action( ‘storefront_content_top’, ‘woocommerce_breadcrumb’, 99 );
}
the 99 on the end defines when the remove action occurs. It could be that your code using 10 is not happening earlier enough in the processing. 99 ensures it runs later.- This reply was modified 8 years ago by Corbett Enders.
Forum: Themes and Templates
In reply to: [Storefront] Can’t Remove Storefront breadcrumbsFree support is very slow and often limited to community involvement. As with most free things, you get what you’ve paid for.
I’ve removed breadcrumbs in the past using css, but that will hide it everywhere and you want to move it from one spot to another so CSS isn’t going to work. Unless we use the CSS to target the specific set of breadcrumbs you want to use which is possible. How about a link to your page so we can use DevTools to inspect?
Storefront support will roll through here every week or two, you will get an official answer at some point.
So assuming your site now has 2 sets of breadcrumbs, what code did you use to add them in your new desired location?
Forum: Themes and Templates
In reply to: [Storefront] Remove breadcrumbs from StorefrontMilad open a new thread. You want to reposition them, this thread is about removing them.