generate a pdf in wordpress without using the plugin - wordpress

I am a wordpress developer. I am stuck here with I need to generate a pdf in wordpress without plugin so just let me know how?
<div class="abccenter">
<button class="red_bt margin40">Download PDF</button>
</div>
<div class="abcpostwrapper margintop20">
<div class="abcpostcontent">
on this download button?

You can easily create pdf via MPDF (http://www.mpdf1.com/mpdf/index.php) with simple integeration.

Related

divi builder in wordpress

I am new to divi builder.
The website is built by another person and it has an issue that I would need to fix.
My question is how and where would I find this line of code:
<div itemscope="" itemtype="https://schema.org/Product">
<ul><li>1× <span itemprop="name">SW-RAF1800</span> (25W fan)</li></ul></div>
I am unable to find the "itemscope", "itemtype", and "itemprop" codes in the backend of the wordpress page.
Any help is highly appreciated!

Search Redirect to wrong Page

Working with SilverStripe I am trying to add search to my website. I have created my own theme, which I am using in my project. Now I am trying to add search in the blog.
In my Page.ss I have added this
<div class="search">
<h3>SEARCH HERE</h3>
$SearchForm
</div>
This code is for adding a search box in the website.
In the config I enable this
FulltextSearchable::enable();
The problem is that it is redirecting me to old theme search page instead of my own theme.

Unable to configure Twitter feed in Drupal site

I have a website in Drupal and I wants same look of twitter widget as in https://www.stanford.edu/ .
There is a module also available in Drupal for Twitter i.e "Drupal feed".
https://www.stanford.edu/ site is mentioned in this module also.
So please help me out so that i can get same look..
Thanks in Advance..
Note : The code i am using is given below.
<a class="twitter-timeline" href="https://twitter.com/tweettestwidget" data-widget-id="603417854055034880" data-chrome="noheader nofooter noborders transparent" data-tweet-limit="1" data-conversation="none">Tweets by #tweettestwidget</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
I used the Twitter module to create a similar twitter feed.
https://www.drupal.org/project/twitter
You can see the feed I created here http://gekkos.com
You can then display the Twitter feed using a View. Then use Views templates to style the output.
E.g. My Views template file was views-view-fields-tweets--block.tpl.php
<div class="tweet">
<p><a target="_blank" href="https://twitter.com/<?php print $fields['screen_name']->content;?>"><?php print $fields['screen_name']->content;?></a> <?php print $fields['text']->content;?> - <em><?php print $fields['created_time']->content;?></em></p>
Then just style the output using CSS.

social count wordpress plugin

Hello Im using a social share plugin. It works correctly but the share counts are not showing. can somebody help me find the problem of this plugin? you can download the plugin documents at https://wordpress.org/plugins/responsive-social-share/
Thank you
This plugin can not support counting so for counting you can follow below steps.
Please save and add this js file into your theme folder and call it into header or footer.
http://w.sharethis.com/button/buttons.js
After that add you social icon like this.
<span class='st_sharethis_hcount' displayText='ShareThis'></span>
<span class='st_fblike_hcount' displayText='Facebook Like'></span>
<span class='st_googleplus_hcount' displayText='Google +'></span>
<span class='st_twitter_hcount' displayText='Tweet'></span>
also you can change button style as par your requirement. for more please visit below link.
http://support.sharethis.com/customer/portal/articles/475260-examples#sthash.PE66l82M.dpbs

how can I get the URL variable in modx gallery

I installed modx gallery and I want to link to the URL I type in when I upload new pictures on the backend. I tried to customize the template but can't find the URL-variable from the upload form:
http://rtfm.modx.com/display/ADDON/Gallery.Gallery.thumbTpl
How would I do this? Thank you.
The placeholder for the URL is [[+url]].
So, call
[[!Gallery &album=`1` &thumbTpl=`myThumbTplChunk`]]
and create chunk called "myThumbTplChunk" with this code:
<div class="[[+cls]]">
<a href="[[+url]]">
<img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
</a>
</div>

Resources