- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Hello,
it should be possible sure.
you can try adding this for example: http://screencast.com/t/yDjWkruxtZMo
the custom post field is td_show_author and when you set it to show it will show the author box.
if (get_post_meta($this->post->ID, 'td_show_author') == 'show') {
$buffy .= $this->get_author_box();
}
PS. I added this to the custom template (based off single.php), towards the top:
//read the current author object - used by here in title and by /parts/author-header.php
$part_cur_auth_obj = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
`
I thought that would do it but I’m still not getting results as in the previous examples.
I’ve been working on this some more and have created a custom template for the Publication detail page. Most of it seems to be working except the variable part_cur_auth_obj isn’t returning any results. For example, this
<?php echo $part_cur_auth_obj->display_name; ?>
and this
<?php echo $part_cur_auth_obj->description; ?>
return no results (are blank).
I tried adding $part_cur_auth_obj as a global to the top of the page, but that didn’t have any effect. If I knew more PHP, I’d probably be able to see the reason this isn’t working, but I don’t. Any chance you could point me in the right direction?
Hello,
I have installed the Newsletter Theme on my website and everything works fine… except for the fact when a user try to print a page, the result is a mess…
For example: when I try to print this page: http://www.brasilnaitalia.net/2014/01/carnaval-de-veneza-2014.html
This is what I get: http://brasilnaitalia.net/carnaval_veneza.pdf
Can you help me?
Thank you,
Barbara
Thx Marius,
This is the link:
http://ap.easy4publish.com/~wishfor/
What I want is that the big post (Verschil tussen een samenlevingscontract en geregistreerd partnerschap) in the slider and homepage is only visible on the “vraag & antwoord” page…
Thx!
Hello,
😐 From where you choose a CSS animation in visual composer? You have implemented some custom css animation? Can you show us an example?
Please give us your site URL to see the issue.
Thanks
Hi,
When I create a new page or post in visual composer and choose a css animation nothing happens.
Everything appears static on on the page regardless of whether I select an animation or not.
I switched from Magazinly and all the stuff that used to animate no longer does and when I try and create new content for example – a page with images that appear left to right as you scroll down – nothing happens!
Was just wondering if anybody else is having this issue at all?
Thanks
hello,
on http://codex.wordpress.org/ you can find a lot of answer to your wordpress (not our theme) code question.
post_type = what is the post type; in this example is post but can be of other type (attachment for ex)
showposts = how many posts of this type to show.
Thanks for you message.
Radu A.
Now it looks nice. Thanks.
If I make a forum named “News & Announcements” when I click on the “News & Announcements” breadcrumb… it takes me to the correct slug “/news-announcements/” but also adds “news%20&%20announcements” which results in 404 page errors.
Is there a way to fix this? Thanks!
– Luca
I’m having a similar logo & header ad overlap issue on mobile for theweddingmagazine.net – screenshot here:

Used CSS code supplied above however it didn’t work.
**double checked now and logo is screen right? Is that where it’s supposed to be?
-
This reply was modified 12 years by
portergraph.
-
This reply was modified 12 years by
portergraph.
-
This reply was modified 12 years by
portergraph. Reason: added info
I want to ask how to edit the fonts in Category (under the title) and in Quotes (shortcodes).
For example check this http://www.aplotaria.gr/alexandros-mpelles-odyssey/
The Category “ΕΚΔΗΛΩΣΕΙΣ” isn’t written with nice fonts.
The same is for text in the box quote center “Η Απλωταριά εξασφάλισε 1 διπλή πρόσκληση για την εμφάνιση του Αλέξανδρου Μπελλέ την Παρασκευή 10/1 και το Σάββατο 11/1 στην Οδύσσεια. Μπείτε στην κλήρωση για την πρόσκληση στέλνοντας email με τα στοιχεία σας και θέμα «Αλέξανδρος Μπελλές» στο info@aplotaria.gr. Το όνομα του τυχερού αναγνώστη μας θα ανακοινωθεί την Παρασκευή το πρωί.”.
The email in the box quote center seems ok, but the greeks letters aren’t nice. Obviously the solution is to change fonts and choose others that support greeks.
Let me know how to do this for categories and texts in shortcodes.
Thanks in advance
Hello,
please try this solution (add this in functions.php and modify the name-of-post-type-here to your custom post type name):
function custom_post_author_archive( &$query )
{
if ( $query->is_author )
$query->set( 'post_type', 'name-of-post-type-here' );
remove_action( 'pre_get_posts', 'custom_post_author_archive' ); // run once!
}
add_action( 'pre_get_posts', 'custom_post_author_archive' );
Also will future versions of Newspaper allow for half stars in the visual part of it? I mean on the app store for example, apps can have 4 1/2 stars. Here the theme rounds 4.5 stars up to 5 stars, which is like rounding a great movie up to the best movie in the universe.
Hi there,
I’ve done installing your theme to my site at http://www.infokomputer.com
After doing some adjustment and setting, i’ve found problem with post title in block1 homepage module. It didn’t fill enough width, so the right side seems too much space (blank). I’ve try to change module setting, but no joy.
In your theme sample, Block 1 module looks perfect. How can i get excatly like that?
Thanks
Brama
Hello, and thanks for the great theme.
I would like to request the ability to override the total rating in a post that uses the built-in review system. Sometimes I would like to break down reviews with ratings for individual facets of the subject in question, but I don’t want the final rating to be an average of the sub-ratings.
For example, something that has sub-ratings less than five stars may still deserve a 5-star overall score.
If this is already implemented and I’m just missing it, could someone point me in the right direction?
Thanks!
Thanks that worked for me.
I’m curious I can make the Ad function insert code after the content, yet still before the Shareaholic plugin?
function my_function($content) {
$content = ‘<p>top_ad</p>’ . $content . ‘<p>bottom_ad</p>’;
return $content;
}
Anything inside the “bottom_ad” code above comes after Shareaholic. http://screencast.com/t/3670HzvAr
Should I look into the Shareaholic code if this is beyond the scope of your theme’s support?
Also what file should I edit (or function should I create) to add an Ad unit at the top of category pages like this one http://appcomrade.com/category/app-reviews/featured-apps/
This is an example of what I’m trying to do on category pages http://screencast.com/t/vNiWaJeO8ZM
Hello,
Do you mean like this: http://screencast.com/t/x57ABHbq but is fake, that text appear only on checkout page.
Add the next code in the menu_header.php file located in \parts\header folder at the end of the file like here:
http://screencast.com/t/45MTi0Spzs
<?php
if (is_checkout()) {
?>
<div style="text-align:center; padding-top:30px;"><h3><span style="color:#cccccc;">SHOPPING CART&nbsp;&rsaquo;</span>&nbsp;CHECKOUT DETAILS&nbsp;<span style="color:#cccccc;">&nbsp;&rsaquo;&nbsp;ORDER COMPLETE</span></h3></div>
<?php
}
?>
Thanks
Okay nevermind to that too. From what I understand, blocks use modules. I’m curious how I can make a block use only one type of module, for example: http://screencast.com/t/91L4fQKnIS6
I want all of the rows to look like the first row.
Hello, I will really like to move this buttons to the top where it will be more visible to my users, what part of the single post or css code do I need to change and how, to make this possible. Example –> http://i.imgur.com/R4QxfwE.png
Thanks in advance
Holiday PageSpeed Fun Report Update!
Just as a pagespeed comment, I was testing mod_pagespeed, vs your tagdiv cache experimental, and W3 with page cache on, and found that mod_pagespeed on server with memcache, optcache and eaccelerator, seem to be about the same effect. What this means for most WordPress folks is quite simple: use a hosting provider that supports mod_pagespeed (e.g., GoDaddy now supports it with htaccess local config options — NOT an advert for them, just anecdotal) may be better option than messing around with all the various plugins that try to replicate that server-side functionality.
To Radu and all … who are wondering about the “render blocking blah blah” errors, this was one of the suggested solutions for WP (note the issue is common to ALL WP themes frankly due to the way the header works for most themes based on “traditional” HTML practice, 2 years ago nobody really cared about this issue!):
(QUOTED from WordPress.org discussion, “wpgeekster”)
The reason you are getting render blocking message from google is because your javascript is being called in the header. In your wp_register_script() function and in your wp_enqueue_script() function you must include true for the $in_footer argument. If you include the $in_footer argument, you must also include all the other arguments.
See:
http://wp.tutsplus.com/articles/how-to-include-javascript-and-css-in-your-wordpress-themes-and-plugins/
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
http://codex.wordpress.org/Function_Reference/wp_register_script
(END QUOTE)
From same discussion:
(QUOTED from “manuelkuhs”)
Here’s what I figured out about how to eliminate all render-blocking JS & CSS:
Install W3 Total Cache
Go to Minify
Use the “help” wizard that you can see as a button near the top
Accept the suggestions without making changes. This will combine all your CSS files into 1, and all your JS files into 1, 2 or 3, depending where you load them (if you load all in the same area, e.g. in the <head>, you’ll only get 1 combined file).
Set all JS to “Non-blocking using Async”.
Now test your site. If everything works, the only blocking CSS/JS file left should be your combined CSS file, and nothing else.
Most likely some JS functions won’t work properly anymore. If this is the case, it gets a bit more complicated.
In this case, try the following:
Remove all the JS files in the Minify settings of W3
Open the source of your functioning page where no JS files are combined and manually add to W3 Minify ONLY the JS files found in the header (since these are the ones “above the fold”) and IN THE ORDER that they exist in your source file. Try this. If it works, try moving them all into the <body> or just before the </body> using the Minify JS settings.
In my case, I had a strange issue whereby combining jquery.js with the other JS files broke many js functions that depend on jquery even though they loaded after. To get around this I made jquery.js load on its own after <body>, and made all the others load combined just before </body>, with everything set to load using async.
Using this method, the only “above the fold” problem I have is the combined CSS sheet.
If your combined CSS is small, you can try inlining the entire thing.
If not, the only way around this that I currently know is to manually inline only the relevant parts of this combined CSS, and then to load the combined CSS in the footer using JS.
(END QUOTE)
-
This reply was modified 12 years by
simchris.
Kennylovescamping
you need to install the shareaholic plugin, then activate it, then configure its built-in settings to automatically place buttons “below” content, and choose buttons you want 🙂
Last time I used it, I didn’t need to manually insert any code in the theme templates, it works like addthis and “inserts” the code into the theme “hooks” at bottom of content.
Hey, @Kennylovescamping
off the original topic, but I did exactly the same thing using the addthis plugin vs the shareaholic plugin.
FYI – just follow my little holiday post and replace addthis with shareaholic, and of course you don’t need to hack the addthis for async mode (obviously):
https://forum.tagdiv.com/topic/holiday-tip-making-fancy-social-media-buttons/
@mmcmsp
similarly you can use the WP addthis plugin to insert share buttons of any style/shape on pages, posts, etc. — easy enough to try to see if it works for you during rev3 development which is Radu’s happy funtime post holidays “-)
-
This reply was modified 12 years by
simchris.
This may not help you, but Regenerate thumbnails plugin worked great for us with thousands of files.
http://wordpress.org/plugins/regenerate-thumbnails/
HOWEVER: if your system “times out” then you need to disable other plugins while doing a large operation on so many images – especially if you have larger then needed images (like if you uploaded 1MB files for images vs 50kb for a gallery picture, as one example), and perhaps set your website to “closed temporarily” (plugin to do this I think). Upshot is you want to
1) make sure your domain on your hosting plan has enough resources available to do a major operation
2) make sure you have enough disk space for all the new image sizes (some people with smaller hosting storage forget about this, as you’re basically perhaps tripling the number of images you will have from say 18,000 to 36,000 (3 old thumbs, 3 new thumbs)
So, plugin will “die” if not enough memory to run or space to write.
If your system still cannot handle doing that much image processing, you may want to look at the Jetpack plugin, PHOTON: http://jetpack.me/support/photon/ .
When you change to ANY new theme in WP you need to redo the image thumbnails as not all themes use the same layout, or thumbnail sizes, which of course is one of the things which makes each WP theme different.
Note that you may wish to also review the various plugins at wordpress.org on this topic as redoing all your graphics is part of using ANY new theme; it’s not specific to this theme.
Auto Post Thumbnail PRO for $7 from Themeforest also works awesome on one of our sites since we pull in content from our mothership site to a sister site via RSS.
Sorry don’t have better help on this one.
