{"id":1123443,"date":"2016-06-07T09:42:33","date_gmt":"2016-06-07T16:42:33","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/"},"modified":"2016-06-07T09:42:33","modified_gmt":"2016-06-07T16:42:33","slug":"how-style-qr-code-on-event-ticket","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/","title":{"rendered":"How style QR code on Event Ticket"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I&#8217;m styling the Ticket email by editing \/tickets\/email.php (in my own theme, of course).<\/p>\n<p>I want to style the QR code info to match the rest of my ticket, but *that* code appears to be in QR.php, which is not an editable template file. Is there a way to plug my custom styles into here without editing core files?<\/p>\n<p>For reference, here&#8217;s the code from QR.php:<\/p>\n<pre><code>\/**\n\t * Generates the QR image, stores is locally and injects it into the tickets email\n\t *\n\t * @param $ticket array\n\t *\n\t * @return string\n\t *\/\n\tpublic function inject_qr( $ticket ) {\n\n\t\t$link = $this-&gt;_get_link( $ticket[&#039;ticket_id&#039;], $ticket[&#039;event_id&#039;] );\n\t\t$qr   = $this-&gt;_get_image( $link );\n\n\t\tif ( ! $qr ) {\n\t\t\treturn;\n\t\t}\n\t\t?&gt;\n\t\t&lt;table class=&quot;content&quot; align=&quot;center&quot; width=&quot;620&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; bgcolor=&quot;#ffffff&quot; style=&quot;margin:15px auto 0; padding:0;&quot;&gt;\n\t\t\t&lt;tr&gt;\n\t\t\t\t&lt;td align=&quot;center&quot; valign=&quot;top&quot; class=&quot;wrapper&quot; width=&quot;620&quot;&gt;\n\t\t\t\t\t&lt;table class=&quot;inner-wrapper&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;620&quot; bgcolor=&quot;#f7f7f7&quot; style=&quot;margin:0 auto !important; width:620px; padding:0;&quot;&gt;\n\t\t\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t\t\t&lt;td valign=&quot;top&quot; class=&quot;ticket-content&quot; align=&quot;left&quot; width=&quot;140&quot; border=&quot;0&quot; cellpadding=&quot;20&quot; cellspacing=&quot;0&quot; style=&quot;padding:20px; background:#f7f7f7;&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;img src=&quot;&lt;?php echo esc_url( $qr ); ?&gt;&quot; width=&quot;140&quot; height=&quot;140&quot; alt=&quot;QR Code Image&quot; style=&quot;border:0; outline:none; height:auto; max-width:100%; display:block;&quot;\/&gt;\n\t\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t\t&lt;td valign=&quot;top&quot; class=&quot;ticket-content&quot; align=&quot;left&quot; border=&quot;0&quot; cellpadding=&quot;20&quot; cellspacing=&quot;0&quot; style=&quot;padding:20px; background:#f7f7f7;&quot;&gt;\n\t\t\t\t\t\t\t\t&lt;h3 style=&quot;color:#0a0a0e; margin:0 0 10px 0 !important; font-family: &#039;Helvetica Neue&#039;, Helvetica, sans-serif; font-style:normal; font-weight:700; font-size:28px; letter-spacing:normal; text-align:left;line-height: 100%;&quot;&gt;\n\t\t\t\t\t\t\t\t\t&lt;span style=&quot;color:#0a0a0e !important&quot;&gt;&lt;?php esc_html_e( &#039;Check in for this event&#039;, &#039;event-tickets-plus&#039; ); ?&gt;&lt;\/span&gt;\n\t\t\t\t\t\t\t\t&lt;\/h3&gt;\n\t\t\t\t\t\t\t\t&lt;p&gt;\n\t\t\t\t\t\t\t\t\t&lt;?php esc_html_e( &#039;Scan this QR code at the event to check in.&#039;, &#039;event-tickets-plus&#039; ); ?&gt;\n\t\t\t\t\t\t\t\t&lt;\/p&gt;\n\t\t\t\t\t\t\t&lt;\/td&gt;\n\t\t\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t\t&lt;\/table&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t&lt;\/tr&gt;\n\t\t&lt;\/table&gt;\n\t\t&lt;?php\n\t}\n\n<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1123443","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How style QR code on Event Ticket -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How style QR code on Event Ticket -\" \/>\n<meta property=\"og:description\" content=\"Hello, I&#8217;m styling the Ticket email by editing \/tickets\/email.php (in my own theme, of course). I want to style the QR code info to match the rest of my ticket, but *that* code appears to be in QR.php, which is not an editable template file. Is there a way to plug my custom styles into [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/\",\"name\":\"How style QR code on Event Ticket -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-06-07T16:42:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How style QR code on Event Ticket\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How style QR code on Event Ticket -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/","og_locale":"en_US","og_type":"article","og_title":"How style QR code on Event Ticket -","og_description":"Hello, I&#8217;m styling the Ticket email by editing \/tickets\/email.php (in my own theme, of course). I want to style the QR code info to match the rest of my ticket, but *that* code appears to be in QR.php, which is not an editable template file. Is there a way to plug my custom styles into [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/","name":"How style QR code on Event Ticket -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-06-07T16:42:33+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-style-qr-code-on-event-ticket\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"How style QR code on Event Ticket"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1123443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1123443\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1123443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}