Forum Replies Created
-
AuthorPosts
-
Hello,
Option 3 worked fine, thanks a lot!
Greetings,
Torsten- This reply was modified 7 years, 2 months ago by th-photography.
Hello,
when adding the css it looks like this: https://www.th-photography.net/wp-content/uploads/2017/07/newsletter4.jpeg
So it is still not in place…
Thanks,
TorstenHello,
ok.
But it is easily possible in the blog view of the theme as you can see on the main page of my blog. So there is no shortcode for that as ‘blog-grid’ / ‘multi-big’?- This reply was modified 7 years, 5 months ago by th-photography.
Hello, i added the code to the single.php of the single.php (it is only available in the enfold main theme).
But it looks like before for the functions.php.
See here: https://www.th-photography.net/wp-content/uploads/2017/07/newsletter3.jpegHere also the code in the single.php:
<?php if ( !defined('ABSPATH') ){ die(); } global $avia_config; /* * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. */ get_header(); $title = __('Blog - Latest News', 'avia_framework'); //default blog title $t_link = home_url('/'); $t_sub = ""; if(avia_get_option('frontpage') && $new = avia_get_option('blogpage')) { $title = get_the_title($new); //if the blog is attached to a page use this title $t_link = get_permalink($new); $t_sub = avia_post_meta($new, 'subtitle'); } if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub)); do_action( 'ava_after_main_title' ); ?> <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'> <div class='container template-blog template-single-blog '> <main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. * */ get_template_part( 'includes/loop', 'index' ); //show related posts based on tags if there are any get_template_part( 'includes/related-posts'); //wordpress function that loads the comments template "comments.php" comments_template(); ?> <!--end content--> </main> <?php add_action('ava_before_footer', 'ava_before_footer_mod', 10); function ava_before_footer_mod() { echo do_shortcode("[email-subscribers namefield=”NO” desc=\"Du willst künftig keinen Artikel mehr auf T.H. Photography verpassen? Dann trag dich gleich für die E-Mail Beitragsbenachrichtigung ein!\" group=”Public”]"); } ?> <?php $avia_config['currently_viewing'] = "blog"; //get the sidebar get_sidebar(); ?> </div><!--end container--> </div><!-- close default .container_wrap element --> <?php get_footer(); ?>
Is it also possible, to have a header over the displayed text line?
Header text: E-Mail BenachrichtigungThanks in advance.
Hello,
no i only whant to have it the articles. Also not on pages, only in the blog posts.
Ok the text is there.
But the box spans over the hole width of the blog (main page and sidebar) and not on the main page only.
See here: https://www.th-photography.net/wp-content/uploads/2017/07/newsletter2.jpegIs it also possible, to have a header over the displayed text line and a small frame around the whole added content?
Header: E-Mail BenachrichtigungThanks
- This reply was modified 7 years, 5 months ago by th-photography.
No sorry, with that i only get the famous “white page”. So there must be an error.
Hello,
thanks for your reply.
It did not work fully correct. Only the first word of the sentence is visible….
See here: https://www.th-photography.net/wp-content/uploads/2017/07/newsletter.jpeg
Hello,
thanks for your reply.
How can i do the native version?
I have the following codes:<?php es_subbox($namefield = “YES”, $desc = “Du willst künftig keinen Artikel mehr auf T.H. Photography verpassen? Dann trag dich gleich für die E-Mail Beitragsbenachrichtigung ein!”, $group = “Public”); ?>
or:
[email-subscribers namefield=”NO” desc=”Du willst künftig keinen Artikel mehr auf T.H. Photography verpassen? Dann trag dich gleich für die E-Mail Beitragsbenachrichtigung ein!” group=”Public”]
Thanks,
TorstenHello,
How is the code for displaying only 2 articles per row instead of the 3?
Thanks.
I adjusted the large size to 1200px x 1200px – as the original image size is. And regenerated them.
But it does not change to blurred effect of the images.
And what should that resizing of the WordPress images change? I want, that the ORIGINAL image file is displayed in the Lightbox and not one of the WordPress generated images…
I do not have that problem with the Plugin “Responsive Lightbox. There the original image is correctly displayed.- This reply was modified 7 years, 5 months ago by th-photography.
Look at my main page. I would like to have it like that. 2 Articles per row.
Hello Victoria,
great, works. How is the code for only 2 articles per row instead of the 3?
Thanks.
It works, great. Thank you.
But the featured images of the shown articles have a link, and when clicking it, you get back to the main page.
How can i change that? So, that you get into the article by clicking the link – or – that the picture has no link?One other question: Is it possible that the articles are arranged in raster layout like on my main page?
Thanks a lot.
Yes i added it via FTP to the functions.php but that had crashed the site (white page).
I am not a friend of the WP editor due to security purposes.
However, I have activated the editor now for you.Thanks,
TorstenYes i did (Responsive Lightbox) and there the images look equal to the original one.
I reactivated the Enfold plugin now, because i would prefer to use it. But i don’t like the blurred appearance of images, which i registrated on a 1920×1080 display (see example above).
The child functions.php looks this way know:
<?php function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10); function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta) { $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4); /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */
So do you have any other idea?
Hello Victoria,
how can I do this?
Isn’t it deactivated for security purposes in principle?Thanks.
- This reply was modified 7 years, 6 months ago by th-photography.
Hello,
Yes sure.
I get no error with that code, only the known white WordPress page if something is wrong.
One more thing in this context: In addition to the featured image in category, month,….-filtered view, I would also like to have an arrangement as raster view as it is the case on the main blog page (Home) of mit site.Thanks a lot for your help,
Torsten- This reply was modified 7 years, 6 months ago by th-photography.
Hello,
i added the code of that thread to the functions.php of the child-theme:
add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == ‘archive’) $layout = multi-big’;
if($context == ‘tag’) $layout = ‘multi-big’;
return $layout;
}But that does not work. I got only the famous complete white page after that ;-).
Any idea?
Thanks
I did it, but the code did not change the problem. The pictures look still blurred.
I added this codes in the child:
this here is for having fullsize for an image link:
function change_lightbox_size() {
return “full”;
}
add_filter(‘avf_avia_builder_helper_lightbox_size’,’change_lightbox_size’, 10);and this is for gallery image links :
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta)
{
$link = wp_get_attachment_image_src($attachment->ID, “full”);
return $link;
}
add_filter(‘avf_avia_builder_gallery_image_link’, ‘avia_change_gallery_thumbnail_link’, 10, 4);>I installed the responsive Lightbox plugin and there the images are displayed in original quality. No idea why the enfold Lightbox does not…
- This reply was modified 7 years, 6 months ago by th-photography.
Thank you for the quick reply.
I tried to copy to code to the functions.php of the theme, but afterwards i only get a blank page.
At which position I have to add the code to the functions.php, or may there be another problem?Thanks,
TorstenHello,
thank you. But i think that is not the problem.
I have chosen the full size image in the article, so none of the automatically generated pictures of lower quality should have been used.
If i open the image link in a new window i get the image in full quality. But if i open it in the Lightbox, it appears a little bit blurred and not so sharp. You can see that in the example of the file above. So there might be a issue with the Lightbox. And it is not the case for all pictures. The pictures in 16:9 are displayed in equal quality to the full file. It seems to be only the case for the 3:2 pictures. SO maybe a problem of displaying them on the 1920×1080 monitor?!Thanks,
Torsten- This reply was modified 7 years, 6 months ago by th-photography.
-
AuthorPosts