Forum Replies Created

Viewing 30 posts - 301 through 330 (of 510 total)
  • Author
    Posts
  • in reply to: Adding captions underneath featured images on posts #942703

    Yeah, this client needs to clear IPs for me to work on the site — can you give me an IP I can ask them to clear for you? Thanks!

    in reply to: sticky posts for magazine element #941682

    OK, I give up — I think we have a sufficient workaround for this using the offset option in the Magazine elements anyway — thanks anyway.

    in reply to: Adding captions underneath featured images on posts #941647

    Thanks, but that doesn’t seem to change anything — if there’s nothing entered in the image/media caption field, it still shows the post title as the image caption, on the front end. Got anything else for me? :)

    Thanks for looking, Victoria — is there anyone else on the team you could ask?

    in reply to: show category name in header title #941239

    Ooh, yeah, that’s much better — that handles the title styling properly, too, so I don’t have to modify that. But it’s too tricky to get multiple categories to show? And if it can only show one, how is it choosing that one — it doesn’t seem to be choosing the Primary Category — do you know how it chooses which category to use as the title?

    Thanks!

    in reply to: sticky posts for magazine element #941074

    Here’s what our IT guy said about that: “I need specific ips for them because it doesn’t do it by country (and I don’t know what ips are for what countries).” — anything you can do for me?

    Huh? This is the original ticket. @dlikat jumped in and asked some other question and you told here to create a different ticket, but nobody has gotten back to me on this one. Right before @dlikat jumped in, I had given you access (on April 4th, above). If I try to reply to that ticket, it just jumps me down here again. Am I missing something?

    But what about the original ticket — you still haven’t responded since I gave you access on the 4th.

    Thanks!

    in reply to: Adding captions underneath featured images on posts #940195

    Remove the custom post title? Sorry, I don’t understand that one — could you elaborate on that, please?

    Thanks

    in reply to: show category name in header title #940193

    Nice, that’s a good step in the right direction! I added the h1 tag around it (see below), like the other, category header titles, so they look the same.

    But there’s no way to show the other categories? Posts are so often in more than one category. Sorry to press on this, but if a user is browsing one category, clicks on a post, and then is taken to a page with a different category title, that’d be pretty confusing, I think.

    Oh, also, this category just links to the home page — can we make it link to the archive page for that category?

    Thanks again!

    add_filter('avf_title_args', 'avf_title_args_mod_category', 10, 2);
    function avf_title_args_mod_category($args, $id)
    {
    	$categories = get_the_terms(get_the_ID(), 'category');
    	foreach($categories as $category) {
    		$args['title'] = '<h1 class="main-title entry-title">'.$category->name.'</h1>';
    	}
    
        return $args;
    }
    
    in reply to: edit avia_default_title_filter via child theme #940166

    Ah, great, perfect — that worked — thanks!

    in reply to: show category name in header title #938693

    Just worked for me, but I have used these credentials for a few, recent tickets — maybe two of you were trying to log in at the same time…?

    in reply to: some imported posts not showing on single post pages #938110

    Oh, cool, great Hmm, I wonder what changed… oh well, all’s well that ends well! Thanks anyway — sorry to waste your time!

    in reply to: show category name in header title #937960

    Sure (credentials in PC) — I have those header titles hidden with css, for single post pages — they do work on Archive pages (e.g., https://www.waternewsnetwork.com/category/education/ or see screen grab https://www.evernote.com/shard/s320/sh/f56ed5ba-d7de-42b5-b9a9-fc766663abe6/51e8181ecd261d785ddcde3181c15aca ) — If I could just show “Category: Education” or just “Education” in that strip for all posts in the Education category, that’d be perfect.

    Thanks and let me know if you have any other questions!

    in reply to: Adding captions underneath featured images on posts #937862

    Sure thing:

    in reply to: sticky posts for magazine element #937362

    OK, that one’s cleared now.

    Sure thing (in private content) — If you edit the Fullwidth Easy Slider on the Frontpage/Home and try to link one of those slides to a post via the Image Link option under the Caption tab, you should see that only posts up through the letter P are available, even though we have plenty of posts available with titles starting with letters after that in the alphabet.

    Thanks!

    in reply to: Adding captions underneath featured images on posts #937015

    I’m trying to add image captions underneath the large featured image in single post pages. I can’t send you directly to this url, because we have a coming soon page blocking the site, but here’s a screen shot — https://www.evernote.com/shard/s320/sh/0f555ea6-3347-476e-8e6b-60d7dd6e4dc0/c85e8bc412d3026bee39c8363930e088 — in this example, I have nothing entered in the Caption field for the image, so it’s apparently just pulling in the post title by default. My client wants to be able to add captions to their featured images, if they have a caption, but they don’t want to just duplicate the post title there, if there’s no caption — if there’s no caption, they would like there to be no caption showing under the image. Make sense?

    Thanks and let me know if you have any other questions.

    in reply to: Adding captions underneath featured images on posts #936765

    This is cool, but if I don’t put anything in the image caption field, it automatically pulls from the post title. Is there a way to modify this so, if the client doesn’t add a cation to the image, there’s no caption?

    Thanks!

    in reply to: sticky posts for magazine element #936248

    OK, he said he whitelisted your IP — sftp in private content (note, it’s sftp, not ftp) — thanks!!

    in reply to: sticky posts for magazine element #935925

    Well, for this particular job, the client has to whitelist whatever IP I’m working from in order for me to FTP, so can you give me an IP that I can get cleared for you?

    in reply to: sticky posts for magazine element #935090

    OK, he said he couldn’t find any server configuration issues or anything, but he thinks it might have something to do with the function sti($n) being
    declared twice. He dug up the error, below, and said, if you comment out that function in the child theme, the page renders. But commenting out that function doesn’t solve my problem, because then I see multiple posts in my Magazine elements (even though I have them set to only show 1 post each), and the sticky post functionality still doesn’t seem to be working.

    Any clues for me, based on this new info? Please let me know if you have any other questions!

    2018/03/28 12:38:26 [error] 27373#27373: *370846 FastCGI sent in stderr: “PHP message: PHP Fatal error: Cannot redeclare sti() (previously declared in /home/waternewsnetwork/wordpress/wp-content/themes/enfold-child/functions.php:22) in /home/waternewsnetwork/wordpress/wp-content/themes/enfold-child/functions.php on line 22” while reading upstream, client: 216.103.1.5, server: http://www.waternewsnetwork.com, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “www.waternewsnetwork.com”

    in reply to: modify functions.php via child theme #931607

    Oh, also, on Mar 7th I mentioned regenerating the thumbs didn’t seem to work for me, but I think I just wasn’t hitting the right sequence to regenerate thumbs in the Simple Image Sizes plugin. Yeah, as far as I’m concerned, you can close this topic. Thanks again.

    in reply to: modify functions.php via child theme #930738

    Actually, FYI, I realize the code I ended up using, above, in my Mar 7 post, still just changes the size of the Magazine thumb, which is not actually what I was looking for. What I was actually looking for is a snippet that would set the Magazine element to use the Portfolio thumb. Instead of using the code above, yes, I may as well just use the Simple Image Sizes plugin and just change the size of the Magazine thumb.

    Anyway, I’m giving up on this now and just settling for the plugin solution — just wanted to note this for anyone who may be looking for the same solution I was.

    Thanks anyway.

    in reply to: sticky posts for magazine element #930088

    No, I did copy it from the forum, but I noticed a plugin I often use — phpenkoder, and email encoder — caused the same issue when I installed it yesterday, so maybe it’s not the fault of the code? I tried disabling all the plugins, though, and it was still causing that issue. Do you think it could have something to do with the server configuration? They have some tight security on this site and I’ve had to have them do several things to enable permissions to add plugins, overwrite theme files, etc. Any ideas for me? Thanks!

    in reply to: sticky posts for magazine element #929304

    Thanks, but that code seems to break my home page — nothing loads below the nav.

    in reply to: modify functions.php via child theme #923602

    Ahh, ok, thanks!

    in reply to: modify functions.php via child theme #923345

    OK, @Guenni007 — putting the following in my child’s function.php file and re-uploading the images at a size greater than 495×400 worked! (note: regenerating the thumbnails with the Regenerate Thumbnails by József Koller plugin did not seem to work for me/this).

    I’m curious, do you know what the 10, 1 refers to in the function?

    Regardless, this solved my issue / answered my question — thanks so much!!

    <?php

    function custom_modified_thumb_sizes( $size ){
    $size[‘magazine’] = array(‘width’=>495, ‘height’=>400 );
    return $size;
    }
    add_filter(‘avf_modify_thumb_size’, ‘custom_modified_thumb_sizes’, 10, 1 );

    in reply to: modify functions.php via child theme #919769

    @Ismael — I did regenerate images and also tried re-uploading, just in case. The image I’m uploading is 720 x 465, so, as I understand it, it should crop to my new 495 x 400 size (since it’s bigger than that in both directions). But, BTW, should I even have to regenerate/re-upload since I’m just switching the Magazine size to use a thumbnail size already available in the theme?


    @Guenni007
    — Thanks, but I’m not trying to add a new size to the array, I’m just trying to tell the Magazine element to grab a different size — a size that’s already available in the theme. So I think it’s a little different solution than you’re referring to. But I could be wrong ;)

    in reply to: modify functions.php via child theme #918755

    Thanks @guenni007, that got me to the point where the functions.php file in my child theme isn’t breaking the site ;) So now I have the following in my child theme functions.php file. As you can see, I’ve changed the magazine line to use the same 495 x 400 used by the portfolio line. It doesn’t seem to be working — am I missing some code here, or do you have any other clues for me?

    (@Nikko, thanks for the plugin suggestion, but I’d rather not just change all the 710 x 375 images generated by enfold to 495 x 400 — I’d rather just change what the magazine element uses and still have that 710 x 375 size available for other uses.)

    <?php
    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );						// images for portfolio 4 columns
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>495, 'height'=>400 );						// images for magazines
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
Viewing 30 posts - 301 through 330 (of 510 total)