Forum Replies Created

Viewing 30 posts - 61 through 90 (of 148 total)
  • Author
    Posts
  • Sorry, maybe I wasn’t clear in what I was trying to describe. Let me backup and re-explain. What I’m saying is that in the PHP function you gave me, if I print the value of the $time_format parameter, its value is avia_newsbox. Is that expected? The page you referenced (Formatting Date and Time) obviously doesn’t reference anything named avia_newsbox.

    Thanks.

    So in this case, date_format has a value of avia_newsbox?

    in reply to: Question about #wrap-all #1156378

    >> Can we access the site with the broken layout? We would like to inspect the content of the page. Please provide the login details in the private field.

    Actually no, that’s one of the issues here. I have three sites: a live site, an online staging site, and a local dev site. This issue exists *only* on the local dev site–the only site you cannot access :-(

    >> Yes, you should run the parser and see it fixes the issue.

    OK. But can you give me clear instructions on what exactly I should do? The page you linked isn’t clear. It just says,

    >> Below ALB debug window you have a section Enfold Shortcode parser with a select box
    >> You have to update the page to check the content

    It also refers to the feature as “Enfold shortcode Preser .” I see a select box in the “Enfold Shortcode Parser” section. In it is an option for “Auto Repair Function enabled – Repairs errors in shortcode structure during update” (screenshot). Should I select this? If so, what should I do after? Please be clear about any and all steps I should take–I have never used this tool, nor do I know what to expect.

    Thanks.

    >> Sorry, I didn’t realize that you had a certain criteria that you wanted this to work in, I only saw that in your question you wanted to remove the date and time from your Latest News widget without using css.

    Yes I accidentally left out that part about the conditional requirements. But let’s not worry about that–I was able to find a solution in terms of those conditions I specified.

    >> Anyways in the function there is no $format there is $date and $time_format

    Yes my mistake–I typed $format when I meant to type $time_format.

    >> you can read about these here: Formatting Date and Time

    I had a look at that link. I see that it describes a ‘format string,’ and it looks like the $date variable in your function corresponds to a ‘format string.’ But I’m still unclear what the input parameter $time_format represents in the function. It has a value of avia_newsbox when I call the function.

    Thanks.

    in reply to: Page builder's min-height seems to be causing problems #1156262

    OK thanks. But that CSS looks like a workaround fix to the overarching issue. Why is the min-height being added in the first place? I would much rather ascertain that, and if possible, ensure it is not added, rather than add additional code just to undo it.

    in reply to: Featured image 'title' is not as expected. #1156260

    >> Unfortunately, I cannot tell you why it is done like this.

    OK. But can you perhaps ask someone who knows the answer? Or transfer me to someone who can answer that question? Or perhaps point me to another forum in which I can ask this question (e.g. GitHub)?

    >> However, you can override this behavior.

    Yes I realize that. But on the surface, this looks like a theme bug that should be corrected in the theme code base by theme devs–wouldn’t you agree?

    in reply to: Question about #wrap-all #1155507

    I have an update. I used that site (https://www.aliciaramirez.com/closing-tags-checker/) to check for unclosed tags. I ran it twice:

    1. I first enabled debug mode. Then I opened my page for editing, and located the debug field. I copied the text in that field and pasted it into the tag checker. It reported no unclosed tags. But as you know, the debug field does not contain all the HTML on the page–there are many shortcodes. Here is the full text of the debug field.

    2. In the second test, I opened the front-end of my page, and viewed the source code. I copied it and pasted it into the tag checker. It reported several unclosed tags:

    Line 743: <li class="news-content post-format-standard">
    Line 743: <a class='news-link' title='Is Forage All a Horse Needs?' href='https://feedxldev.local/is-forage-all-a-horse-needs/'>
    Line 743: <span class='news-thumb '>
    Line 743: <a class='news-link' title='Don’t Forget the Milk!' href='https://feedxldev.local/dont-forget-the-milk/'>
    Line 743: <a class='news-link' title='How to Make Sense of Pasture Analysis Results' href='https://feedxldev.local/how-to-make-sense-of-pasture-analysis-results/'>
    Line 959: <form action="https://feedxldev.local/" method="get" id="adminbarsearch">
    Line 959: <a class='ab-item' aria-haspopup="true" href='https://feedxldev.local/wp-admin/profile.php'>

    Again, there is no custom HTML added to the page.

    In light of the second test, how do you think I should proceed? Do you think I run the shortcode parser?

    Hi Mike,

    Thanks for that. I’m happy to try that code. But can you tell me what it is *supposed* to do? Specifically, what exactly are $date and $time_format? When I print their values I get:

    $date = ‘F j, Y – g:i a’
    $format = ‘avia_newsbox’

    >> I’m unsure if this has an effect elsewhere so please check.
    If you can state what exactly the code is supposed to do, it will give me an idea of which other pages might be affected.

    I tried your code, and what it seems to do is prevent the date from rendering on *all* posts. That’s not exactly what I want. I want the date hidden only if these conditions are met:

    1. The page has a post ID of 555.
    2. The post does *not* have a category of ‘my_category.’

    I can probably add these conditional checks to the PHP code myself. But if you can give me more info on $date and $format I would appreciate it.

    Thanks.

    in reply to: Featured image 'title' is not as expected. #1155198

    OK. So isn’t that a bit non-standard and undesirable? Why is the theme overriding the title attribute that I set in WordPress media library? The sole purpose of that field is to allow me to set the title attribute to anything I want.

    @Victoria OK thanks for confirming.


    @Yigit
    Thanks for that. But what exactly will that code do? I added it, but there was no noticeable change to the front-end.

    in reply to: Featured image 'title' is not as expected. #1154962

    OK thanks for that. I see that the title attribute on the image is being set to $featured_img_desc. Earlier in the file, in lins 152-154, that variable is set to the post excerpt by default. Only when the post excerpt is blank will that variable be set to the image’s actual title attribute. Am I understanding that correctly?

    Those lines are:

    $desc = get_post( get_post_thumbnail_id() );
    if(is_object($desc))  $desc = $desc -> post_excerpt;
    $featured_img_desc = ( $desc != "" ) ? $desc : the_title_attribute( 'echo=0' );

    OK thanks for that. I see in /enfold/framework/php/class-framework-widgets.php that avia_widget_time appears four times. Which of those four applies in my case? I think it’s one of these two:

    $time_format = apply_filters( ‘avia_widget_time’, get_option(‘date_format’) . ” – ” . get_option(‘time_format’), ‘avia_get_post_list’ );
    $time_format = apply_filters( ‘avia_widget_time’, get_option(‘date_format’).” – “.get_option(‘time_format’), ‘avia_newsbox’ );

    Probably the first?

    in reply to: Question about #wrap-all #1154943

    >> Did you add any html tags in the page? You have to make sure that all tags are closed properly, otherwise they will break the layout of the site.

    OK good point. I personally haven’t added any custom HTML to the page, but I also did not build the page. Is there an automated tool I can use to check a page for unclosed/incorrect HTML tags?

    >> You can also set the builder to debug mode and enable the shortcode parser to automatically repair the shortcodes on update.

    Let’s say I had added custom HTML to the page, and accidentally included an unclosed HTML tag. Would the shortcode parser be able to find/fix that?

    in reply to: Mobile main menu link issues #1153897

    OK thanks very much for that. With those instructions, I was able to fix the issue. We can consider this resolved.

    in reply to: Featured image 'title' is not as expected. #1153886

    Yep, my fault for not being clear on that. Thanks for passing this up to the team.

    in reply to: Question about #wrap-all #1153475

    >> Yes, all the content should be in the container with the id of wrap-all.

    OK thanks for that info. In that case I have a weird issue, and I’m not sure how to resolve it. On my live site, and staging site, on my home page, all my content is indeed inside #wrap-all. But when I cloned my live site to my local site, my local site was different in that respect. On my local site, only the top couple elements are inside #wrap-all. The rest of the elements are outside #wrap-all, at the same level in the DOM (screenshots). Any ideas how that would even occur, much less how to fix it? I guess some custom JavaScript could accomplish that, but I am using the unmodified parent theme, so there should be none of that.

    This issue is causing problems with styling. Certain CSS rules that should be applied are not, because of the incorrect DOM structure.

    in reply to: Featured image 'title' is not as expected. #1153474

    Hi Mike and Guenni007. Thanks for the reply and I appreciate your suggestions. But to be clear, both of those are workarounds–extra code to cover up what appears to be a bug. What about an actual solution to the issue–one that ensures the title attribute on the page is set to the value I assign it in the WordPress media library?

    For example, both of your suggestions will ensure the title attribute is blank. But what if I don’t want it blank? What if I want to set the title attribute to the value defined in the WordPress media library? With your workarounds it seems like I would have to add custom code on a per-image basis.

    Thanks.

    in reply to: 'Developer' tab is blank–cannot edit custom class #1151686

    OK thanks, that actually worked! We can consider this resolved.

    in reply to: 'Developer' tab is blank–cannot edit custom class #1151674

    OK here is the login information (see private content).

    in reply to: Template questions #1151673

    OK thanks for that. I was able to delete, per the instructions. We can consider this resolved.

    in reply to: 'Developer' tab is blank–cannot edit custom class #1151566

    OK thanks for the info. I had a look at that other post, and tried the workaround, but it didn’t work. Specifically, I downloaded the 4.6.2 version of \enfold\config-templatebuilder\avia-shortcodes\textblock.php, then replaced my current version with that version. But the developer tab is still empty. Any ideas how to troubleshoot that?

    Thanks.

    in reply to: Template questions #1151524

    OK thanks for confirming. Saving the entire page as a template should be fine. As a follow-up question though, how can I delete existing templates?

    in reply to: Template questions #1151478

    I forgot to turn on email notifications, so I’m doing so now.

    in reply to: Slider min. height issues #1151105

    OK got it–thanks for clarifying. We can consider this resolved then.

    in reply to: Layer Slider: How to display full width image? #1150014

    I didn’t hear from you, so I had to go with an alternate solution. So we can close this ticket. If I have to re-visit it, I will create a new ticket.

    in reply to: Slider min. height issues #1150013

    Isn’t Revolution Slider a plugin that comes bundled with the theme?

    in reply to: How to hide element with PHP? #1148868

    OK got it. The automated portion is a requirement, and the workaround unfortunately doesn’t meet that requirement.

    I have a separate workaround–using PHP and CSS–which should be acceptable. Thanks for your help. We can consider this resolved.

    in reply to: How to hide element with PHP? #1148364

    >> However, the workaround that I think would work for you is either to modify Color Section element or create a different version of Color Section,

    OK. Let’s say I created two different sections: Section A and Section B. How would I then ensure–using just PHP (and no CSS)–that only Section A is displayed between October 22 and October 29, and only Section B is displayed at all other times? I am looking for an automated solution, not a solution in which I have to manually make changes on those dates.

    It looks like that is not easily done–correct?

    in reply to: Theme update error ('unable to copy some files') #1148306

    OK I see the update link in Enfold Child–>Theme Update. But note that no such update link appeared in Appearance–>Themes or Dashboard –> Updates. Hopefully that does not occur in the future.

    Regardless, clicking the link in Enfold Child–>Theme Update resolved the issue. The theme then updated as desired.

    We can consider this resolved.

    in reply to: How to hide element with PHP? #1147751

    Sorry, but I’m not sure what you’re saying. Maybe I should re-phrase my question. I have a color section element added to my home page. Does the theme provide a PHP function/hook which allows me to hide this section, using PHP code?

    Thanks.

Viewing 30 posts - 61 through 90 (of 148 total)