Forum Replies Created
-
AuthorPosts
-
Josue, I see the enlightening answer was placed in a private reply is this something that can be posted publicly. I too would like to do this, but am running a child theme and want to know specifically how to implement this in a child theme setup.
ThanksHey Josue
Thats great thanks. But what about the data-av_icon=””So is the following the proper way to accomplish this?
1. First you render the icon on a page or whatever using the shortcode.
2. then publish page
3. Then inspect page
4. then copy past the code into the widget area. Meaning you are copy pasting literally a “square” and then it will render the proper icon?Whats the deal with the squares?
Worked great. thank you.
oh they are out there. just waiting in line for responses ;)
oh gees. thank you. that was driving me nuts.
October 8, 2013 at 1:04 pm in reply to: Display Media item Title instead of Media item Description in Lightbox #172179I would like to know this very same thing. and for sure implemented with a child theme.
As a photographer I upload hundreds of images in galleries and want the names visible in the lightbox. The titles are auto generated on upload but I can’t spend the time to copy paste these in the descriptions for hundreds of images every few days. If using the default wordpress shortcode for a gallery changes the appearance of the gallery layout I wouldn’t’ want to do that. Also if I am not mistaken you have to just use the visual editor and then if you wanted to make any sort of change after you create it it is a hassle.
So it would be best if we could us the template builder but have the change in the code. Please, if you can take the time to describe fully how to implement this change as it is very important to me. Thanks.
Dude, sorry but it is in my post already. ;)
Ismael this sounds like a brilliant solution. But for some reason the process seams so hard for me. Unless there is a better way of implementing icons in widget areas. I first create a new page and use the icon shortcode to generate it. then I copy that code into the widget area. This was fine until i needed to change them.
If I inspect a rendered shortcode like you mentioned I do get different code.
<span class="av_font_icon avia-icon-pos-left" style="font-size:15px;line-height:15px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>
but as you can see the icon = a square. If I just type the shortcode numeric code (example ue821) then the browser just renders the text not the icon. But in that html code it would be easy to ass another class after avia-icon-pos-left and then target that in css.
So for me it was easier to just use the code generated after creating the shortcode, as the numeric code works in thsi manner. But then I cant target it so far with my skills.
Would it be too much of a pain for me to ask that someone provide an example with the proper code placed in the widget area, along with css that has the power to say change the color or position of a specific icon.
Hey Yigit,
That worked perfectly thanks.But to take it further. what if I had to target them individually. Would I then have to do it in the widgit area? If so how? if not how do you target them each in the css? I don’t see any unique id’s when I inspect the element
in the footer. the code is above that built it. Is this something that I would change in my child style.css file? or can it just be changed in the inline code of the widget are? what is the normal practice for this?
[URL=http://imgur.com/SAtgl2H][IMG]http://i.imgur.com/SAtgl2H.jpg[/IMG][/URL]
Got it…
had to get rid of this:
avia-font-'.$font.'
that was in the old code and follow the new code of:
$output .= ' <div class="iconbox_icon heading-color" '.$display_char.'></div>';
Into the updated content as follows:if(!empty($link)) { $output .= "<a href='$link' title='".esc_attr($title)."' $linktarget>"; $output .= '<div class="iconbox_icon heading-color" '.$display_char.'></div>'; $output .= '</a>'; } else { $output .= '<div class="iconbox_icon heading-color" '.$display_char.'></div>'; }
then the new icon code is in place and the updated to make the iconbox icons themselves active links like the h3
I think I got this.
In the settins, update settings, add the theme forest credentials.
I did this and it showed the update but I had to manually click it to update.
Thank you so much Devin. Bloody Brilliant answer. I was able to follow along and the icons are now active links. Worked perfectly. Unfortunately for me as long as you guys give the actual php code and clean directions I can make the changes. I just wish I could figure out the actual php code you guys produce for us. But obviously that is why my label is participant not moderator. haha
thanks again for the clean answer. Sorry for the double posting and over all bad form in the forum on bumping.
Cheers
BrockI added the function only, to my child’s function.php file and nothing happened. but I see the other forum provided edits to funtions in my child folder start with add_filter( then contend) followed by a function. If I needed to add the filter also I don’t know what the values should/would be.
Can you provide what that should be?
original line was
$output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>';
edited to
if(!empty($link)) { $output .= "<a href='$link' title='".esc_attr($title)."' $linktarget>"; $output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>'; $output .= '</a>'; } else { $output .= '<div class="iconbox_icon heading-color avia-font-'.$font.'">'.$display_char.'</div>'; }
September 22, 2013 at 10:12 am in reply to: Iconbox link form the icon not just the heading text #164769Any takers on this one?
If I follow the simple instructions by dude and replace the text in the parent folder the link behavior changes for the better. But if I leave the parent alone and put the changed file into my child folder root nothing happens.what else do I need to to do to get this working? Thanks
That worked Devin, of course you knew this. Thanks for helping me accomplish the change
CheersOk I think that makes good sense to me and I will try my had at doing that. But a general question that you may know as you deal with the theme so much. Without just “knowing” How does one find/determine all the parent files that individually call the comments.php?
Devin, can you take this explanation further. I am trying to simply change the text – leave a reply, want to add the the conversation etc.
I found and modified the comments.php file in the parent directory. And then uploaded the entire original file (with modifications) into the child folder. and the text changes aren’t showing up. I am assuming I am missing a step on these not core files.
first a simple question. when you change these types of files, is it best/required to upload the entire original file, or just the mods for files other than core files?
I don’t have any clue what is meant by “you need to actually register that file in your child theme” I tried looking this up but I just keep finding instructions on settign up a child theme.
Can you provide an example of how this works with the coding please.
These codes are working to adjust guys thanks. But still not quite what I want. on the square nav controls ( .avia-slideshow-arrows I want to remove or hide the actual square shape but still have the arrows visable
Anyone know how to do this on all easy sliders?
On Mobile only: I want to turn off the circle indicators and hide the box part of the arrow nav just leaving the actual arrows for easy sliders viewed on mobile devises. Say target media screen less than 420px
Got it. Peter there is an error in the code you pasted above after avia_remove_breadcrumb_before’ then there is a period this needs to be a , after changing that it works beautifully :)
Peter, Does this need to be the last lines of code, or does it need to go before something? When I added this, to my child functions.php I get an error that shows up at the top of the pages now.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘avia_remove_breadcrumb_before10’ was given in /home/content/50/8301350/html/wp-includes/plugin.php on line 173
If add it to the themes functions.php I get an critical error warning and the site doesn’t even show up. What am I missing?
August 9, 2013 at 10:45 am in reply to: Enfold header size and no sidebar blog main content container size #134205Ok well now it is working. I didn’t do anything differently, I must have refreshed 10 times and reset my cache and it was working but now it magically is.
So I guess maybe look over my change Was that the right code to mess with. Well I mean the best choice?
Thanks Dude. Your css change yielded the same visual result, as what I changed. I don’t know a ton of coding, just enough to sometimes get myself in trouble. I don’t know if what I did could also yield some other negative side effect. But they both seam to work for now. Thanks gain team for the assistance.
I will give that a try and see how it looks.
I was also able to solve it by changing the following code
div.pp_default div.pp_content_container .pp_details {
margin-top: 12px;
}
to
div.pp_default div.pp_content_container .pp_details {
margin-top: 7px;
}
Sorry, This isn’t really a solution. That would only work if the image that was being opened in the lightbox was actually 320 px and smaller. But as a photo might be any height. That won’t solve the issue.
It can’t just be me. Look at the sample of the theme on this site. Go to the blog. and look at any image in the lightbox. me experience is whatever size the image is, it looks like the above sample. imho the error has to be in the native code somehow. However that height is being set. The default height needs to be 10 px taller than what is being generated by default.
“http://kriesi.at/themes/enfold/2012/01/14/this-is-a-nice-post/?skin=Cyan
Above is the link to the theme sample. Below is a link to a screen grab of it. I see it this way on mac / chrome or safari, or my iphone 4 using the default safari browser. I haven’t tried anything else. Thanks
-
AuthorPosts