Need only photo and name Theme (with link on demo)
-
Hi!
Your plugin is the best!Please tell me, I need only photo and name Theme (with link on demo).
How can I do it?
Thank you so much!
-
Hi,
To retrieve those data individually, you can use the custom parameter like that :[wp-pic type="theme" slug="zerif-lite" custom="screenshot_url" ] [wp-pic type="theme" slug="zerif-lite" custom="name" ] [wp-pic type="theme" slug="zerif-lite" custom="url" ]
But you won’t be able to use those shortcode withing the visual editor to build links and images. (Sorry if I’m note clear).
The best way to achieve what you want is to build your own custom template.
Please refere to the plugin documentation.NEW Beta feature (added in 2.2): You may now create your own template file. You need to create a new “wppic-templates” folder into your theme folder, then copy the template file “wppic-template-plugin-large.php” or “wppic-template-theme-large.php” from the WP Plugin Info Card ‘/wppic-templates’ folder. Rename the file as “wppic-template-plugin-NEWTEMPLATE.php” or “wppic-template-theme-NEWTEMPLATE.php”, edit it as you go, and add your own CSS rules. Finally, call your new template by adding the following parameter in your shortcode: layout=”NEWTEMPLATE”
Hope this helps.
CheersWhen I use it:
1.[wp-pic type="theme" slug="zerif-lite" custom="screenshot_url" ] 2.[wp-pic type="theme" slug="zerif-lite" custom="name" ] 3.[wp-pic type="theme" slug="zerif-lite" custom="url" ]
I get this:
1.//ts.w.org/wp-content/themes/zerif-lite/screenshot.png?ver=1.8.2.1 2.Zerif Lite 3.https://www.ads-software.com/themes/zerif-lite/
But there is only text.
But I need it:
https://s13.postimg.org/k8xp89n3b/11v_2.png
https://oi57.tinypic.com/1424xtf.jpgFinally, call your new template by adding the following parameter in your shortcode: layout=”NEWTEMPLATE”
In what file it is necessary to write layout=”NEWTEMPLATE”?
That you can do so after updating the plugin all my NEWTEMPLATE were and continue to work?
Instead of calling the default layouts within the shortocde with the parameter layout=”card” or layout=”large”, you have to call your new template file with it name layout=”your-template”. That’s easy as a pie ??
Since you create the new file wppic-template-plugin-NEWTEMPLATE.php in your theme/child theme repertory, you won’t lose anything after an update. That’s actually the reason why I did that like this (and like other developpers).
Cheers
Thanks!
Pls tell me, why
I am create wppic-template-theme-flip2.php
I am add in post [wp-pic type=”theme” slug=”zerif-lite” layout=”flip2″]When I look, I see my add color, but the template large.
But I need a template card (layout=”flip2″ card)That’s probably because you created your custom template by copying the “wppic-template-plugin-large.php” template.
The “card” template don’t have an easy tweakable CSS, that’s why I suggest in the documentation to use the “large” one as a base for your custom template.In your case, using a bit of CSS to hide the unnecessary elements you don’t want to see should be easier.
No, I am copy wppic-template-theme.php
<div class="wp-pic card theme wp-pic-ajax " id="wp-pic-zerif-lite" style="float: right; " data-type="theme" data-slug="zerif-lite" data-image="" data-expiration="60" data-layout="card"> </div> .card.wp-pic { width: 280px; height: 420px; position: relative; display: inline-block; }
<div class="wp-pic flip2 theme " id="wp-pic-zerif-lite"><div class="wp-pic-flip"> </div>
I compared the code.
In the new template are no classes (.card)My bad. Sorry… I did this a long time ago.
Actually, you can’t edit the card template because:
- the CSS and JS are not easilly customizable
- the used layout is defined by the layout name you provide in the shortoce. That’s why you have “wp-pic flip2 theme” and not “wp-pic card theme” is you use [wp-pic type=”theme” slug=”zerif-lite” layout=”flip2″]
In your case, if you really want to use the flipping card layout, you should probably use some lines of CSS to hide elements you don’t want to display. Eg:
.wp-pic.card.theme .wp-pic-front p.wp-pic-author, .wp-pic.card.theme .wp-pic-bar { display: none; }
I found how to fix.
But this option seems to me not very correct.I created a file with a space:
wppic-template-theme-card flip2.php
And I add this code into the post
[wp-pic type="theme" slug="zerif-lite" layout="card flip2"]
Yes, this is a bit dirty and probably unsafe ^^
But if it works…Please fix!
We need this:
wppic-template-theme-card-NEWTEMPLATE2.php [wp-pic type="theme" slug="zerif-lite" layout="card-NEWTEMPLATE2"] wppic-template-theme-large-NEWTEMPLATE2.php [wp-pic type="theme" slug="zerif-lite" layout="large-NEWTEMPLATE2"]
Then we can make beautiful templates.
We can share templates and create templates collection.You can already do that.
Just keep in mind that the default flipping layout IS NOT CUSTOMIZABLE, but you can do what you want with your own temaplte + CSS + JS based on the large template.I am copy wppic-template-theme-large.php
No work:
wppic-template-theme-f22.php [wp-pic type=”theme” slug=”zerif-lite” layout=”f22″]Original work:
wppic-template-theme-large.php [wp-pic type=”theme” slug=”zerif-lite” layout=”large”]https://oi62.tinypic.com/2mzfrsx.jpg
https://s28.postimg.org/f3q9c0b59/large.pngIt is working as it should.
If you create your custom template, then it is to create YOUR custom template and to apply your custom CSS. If you want to use the original style, you have to copy the original CSS and to adapt it to your custom template.
- The topic ‘Need only photo and name Theme (with link on demo)’ is closed to new replies.