Forum Replies Created
-
AuthorPosts
-
December 12, 2018 at 10:56 pm in reply to: Add in Masonry after title also the Author's name and category #1044561
Fantastic! You really helped me!!!!
Thank you very much :))))))
LorenzoDecember 10, 2018 at 7:51 pm in reply to: Add in Masonry after title also the Author's name and category #1043293Thank you for your kind assistance, but now in ALL the articles appears the same name: Lorenzo Paolini.
Lorenzo Paolini is me, the admin of the site, but we need that in the same position will appear the name of the single Author of the article.
For instance, for the article “Il marketing dell’Anima” Author is “Piero Priorini”:
Thank you for your cooperationDecember 8, 2018 at 6:22 pm in reply to: Add in Masonry after title also the Author's name and category #1042510toc toc…. I sent access data, any news? thanks
December 5, 2018 at 2:42 pm in reply to: Add in Masonry after title also the Author's name and category #1041227Thank you for help:
- This reply was modified 6 years ago by Victoria.
December 2, 2018 at 2:06 pm in reply to: Add in Masonry after title also the Author's name and category #1039933I had to remove the script you suggested because it causes errors in scrolling the menu. If you can help me do it, it’s useless for me to wish me luck … …
December 2, 2018 at 1:51 pm in reply to: Add in Masonry after title also the Author's name and category #1039925I inserted from line 729 the script as you suggested, I also cleared the cache, but nothing changes. I enclose final part of functions.php by copying it from line 686 to show you what I have done.
————————————
* Remove the default shortcode function, we got new ones that are better ;)
*/
add_theme_support( ‘avia-disable-default-shortcodes’, true);/*
* compat mode for easier theme switching from one avia framework theme to another
*/
add_theme_support( ‘avia_post_meta_compat’);/*
* make sure that enfold widgets dont use the old slideshow parameter in widgets, but default post thumbnails
*/
add_theme_support(‘force-post-thumbnails-in-widget’);/*
* display page titles via wordpress default output
*
* @since 3.6
*/
function av_theme_slug_setup()
{
add_theme_support( ‘title-tag’ );
}add_action( ‘after_setup_theme’, ‘av_theme_slug_setup’ );
/*title fallback (up to WP 4.1)*/
if ( ! function_exists( ‘_wp_render_title_tag’ ) )
{
function av_theme_slug_render_title()
{
echo “<title>” . avia_set_title_tag() .”</title>”;
}
add_action( ‘wp_head’, ‘av_theme_slug_render_title’ );
}
// new script
add_action(‘wp_footer’, ‘ava_new_custom_script_masonry’);
function ava_new_custom_script_masonry(){
?>
<script type=”text/javascript”>
(function($) {
function a() {
var masonry = $(‘.av-masonry-entry’);
if(!masonry.length) return;
masonry.each(function() {
var cat = $(this).find(‘.ww-masonry-cat’);
$(this).find(‘.ww-masonry-title’).prepend(cat);
});
}a();
$(window).on(‘debouncedresize av-height-change’, function() {
setTimeout( a(), 300 );
});
})(jQuery);
</script>
<?php
}/*
* register custom functions that are not related to the framework but necessary for the theme to run
*/require_once( ‘functions-enfold.php’);
/*
* add option to edit elements via css class
*/
// add_theme_support(‘avia_template_builder_custom_css’);November 30, 2018 at 6:42 pm in reply to: Add in Masonry after title also the Author's name and category #1039398Ismael tells to add the following code:
Replace the javascript with this:// new script
add_action(‘wp_footer’, ‘ava_new_custom_script_masonry’);
function ava_new_custom_script_masonry(){
?>
<script type=”text/javascript”>
(function($) {
function a() {
var masonry = $(‘.av-masonry-entry’);
if(!masonry.length) return;
masonry.each(function() {
var cat = $(this).find(‘.ww-masonry-cat’);
$(this).find(‘.ww-masonry-title’).prepend(cat);
});
}a();
$(window).on(‘debouncedresize av-height-change’, function() {
setTimeout( a(), 300 );
});
})(jQuery);
</script>
<?php
}BUT I HAVE TO ADD THIS CODE, WHERE? Please specify in what file and in what position.
Thank youNovember 29, 2018 at 5:37 pm in reply to: Add in Masonry after title also the Author's name and category #1039061Could you – at least – explain how to add the category before the title?
Unfortunately all the post indicated did not provide a complete solution.
RegardsNovember 28, 2018 at 6:56 pm in reply to: Add in Masonry after title also the Author's name and category #1038665Dearv Victoria,
the suggested post are not solving my particular case.
I would like to add BOTH the category and the name of Author of the post, as per following example:CATEGORY Title of the post
John Smith, Nov, 25, 2018Can you suggest a solution?
Thanks
(i added in the previous post the needed login data)site: http://www.squitt.it
admin: wp_2773633
pw: viaCassia6 -
AuthorPosts