Forum Replies Created
-
AuthorPosts
-
No worries.
I learn a lot about the theme from helping other people, very good way to learn.
Thanks
TJ
Morning,
Without looking at the page I’d hazard a guess that the selectors are incorrect.
The code is looking for an ID of blur and a class of background-image are these used on your av-section and image at all? (there is also a “.” missing infront of background-image)If you can post a link to the page someone can look at the html and check everything is correct.
Thanks
TJ
June 30, 2017 at 10:52 am in reply to: Social Icons (Fontello) not rendering after migration to https #814906So long as that green padlock shows you are fine and the code I linked to wont be needed. Keep hold of it just in case though.
If using Google Chrome you can inspect a page and see any CORS / mixed content issues.
It will help identify if there are any http references to style sheets / images etc still being referenced.Hope that helps
TJ
Good Morning (or maybe Good evening in Canada?)
The masonry gallery element will only pull images. To display posts or custom post types you will have to use either the Blog post, portfolio grid, masonry or post slide elements found in the content element tab of the ALB.
You’ll need to crate the short code in the default editor. I don’t know how familiar you are with the default editor so I’ve done some screen shots.
Select the masonry element from the default editor.
you can the select post etc on next screen
It will the pump out a nice shortcode for you to use :)
Any issue just holla
TJ
- This reply was modified 7 years, 5 months ago by tjswarbs78. Reason: so image link open in new window
Morning,
You can achieve this in two ways…
1) use a color selection. Go to edit section>section layout>then right at the bottom you see a section for developer ID. Place your text in there.
See image2) use
<div id="id-name-here"></div>
This can be placed anywhere on the page.Hope this helps
TJ
Hey Ismael
I did this before i saw you’re reply…jQuery(document).ready(function($) { "use strict"; $("#element_avia_10_1").hide() ; $("#avia_9_1").change(function() { if($("#avia_9_1").val() === "Yes") { $("#element_avia_10_1").show(); } else { $("#element_avia_10_1").hide(); } }); $("#element_avia_11_1").hide(); $("#avia_9_1").change(function(){ if($("#avia_9_1").val() === "No") { $("#element_avia_11_1").show(); } else { $("#element_avia_11_1").hide(); } }); });
I’m guessing it does the same thing as the fields work as needed.
Many thanks
TJ
Hi,
#top .social_bookmarks li a {text-decoration:none!important;}
will remove the underscore on icons
and
#top .social_bookmarks li {border-right:none!important;}
will get rid of the line
Hope that helps
TJ
Hi,
Be easier to troubleshoot on a live page. If possible can you post a link?
No log in details just a link so I can inspect the page and take a look :)Thanks
Tim
June 29, 2017 at 10:42 am in reply to: Social Icons (Fontello) not rendering after migration to https #814338Hi,
I would imagine this is a CORS issue.
You have moved to https but some files / icons / images may still be being requested over http. If that is the case they will be blocked and thus don’t show.
Try this first off and see if it helps
http://kriesi.at/documentation/enfold/enable-cors/In order to delve further and see any errors a link to the website would be handy, if you’re ok with that :)
Hope that helps
TJHere are the changes highlighted and working
TJ
June 28, 2017 at 1:01 pm in reply to: Problems with icons and Fontello (some icons appear as a white square) #813787haha,
Techonolgy!!
Glad it sorted itself.
TJ
Hey there,
I noticed an error in the code which is causing it to render incorrectly. There was an extra quotation mark that caused the break
<div style="”position:" fixed;="" top:="" 0px;="" left:="" 0px;”="">
Try this line to replace it…
<div style=" position: fixed;top: 0; left: 0; z-index: 999!important;">
You could give the div a class or ID and then use custom css to change the element rather than using in-line code
Hope that help
TJ
June 28, 2017 at 12:37 pm in reply to: Problems with icons and Fontello (some icons appear as a white square) #813775Morning,
This is usually due to cross-origin resource sharing. The fonts being being requested from a url that differs from the original / default. The Chinese icons are a fall back i believe
Try this
Hope that helps
TJAh yes.
We removed the top padding from the image so it has moved up 5px so we need to move the entire element down to compensate..avia-image-container.avia-align-center { margin:17px auto; }
That will add appropriate margin to top to push it down.
OR
you can move the entire left element up.
.links_page_promo_box { margin-bottom:10px; margin-top:0; }
that removes the top margin but we then need to double the bottom from 5px to 10px to keep the spacing
Give that a whirl :)
Thanks
TJ
Oops my bad…
remove the code that does the margin.Extra spacing can be done using…
.avia-image-container.avia-align-center { margin:0 auto 20px; }
That is a global change and not page specific
TJ
- This reply was modified 7 years, 5 months ago by tjswarbs78.
Morning,
Everything in enfold has a shortcode that can be used.
If using the default editor you can add elements via the little wand tool (second from the right).
This will create a nice shortcode, something like…[av_masonry_gallery ids='' items='24' columns='flexible' paginate='pagination' size='flex' gap='large' overlay_fx='active' container_links='active' id='' caption_elements='title excerpt' caption_styling='' caption_display='always' color='' custom_bg='' custom_class='']
Flip to the ALB and you can then use it inside a text block or codeblock.
Word of warning though… shortcodes inside building block sometime break so it isn’t advisable.If you want to add a css class to the element (you may have done this already?) follow these instructions
This will allow you to add a class to the masonry gallery so you can target it with css
hope that helps
TJ
Morning,
Do you mean the secondary menu that appear above standard header?
#header_meta { background-color:#000000; color:#ffffff!important; }
That should change background color to black and and text to white (unless there is other css effect the font)
If you are able to post a link to a page it would be easy to see play with the code.Hope that helps
TJ
Morning,
You have some custom css that is adding padding of 5px to the top of the image..links_page_video_image_styling .avia_image { padding-left: 0px!important; padding-right: 0px!important; padding-top: 5px!important; padding-bottom: 0px!important; }
Remove that and the image and overlay will be flush.
You can just use
.links_page_video_image_styling .avia_image { padding:0!important}
Then to keep the bigger spacing use
.links_page_video_image_styling .avia_image { margin-bottom:5px;}
Hope that helps
TJ
Monring,
Each page has a class that corresponds to the page ID.
You can use this class as follows….page-id-3257 .avia-image-container img { filter: grayscale(100%); -webkit-filter: grayscale(100%); filter: gray; -webkit-transition: all .6s ease;} .page-id-3257 .avia-image-container img:hover { filter: grayscale(0%); -webkit-filter: grayscale(0%); filter: none; }
Give that a try and see what happens.
Hope that helpsTJ
Hi Yigit,
Thank for the info. I’ll look into the shortcode idea. I’m always looking to learn tricks :)
Thanks
TJHello,
Under Theme Options> Sidebar Settings do you have Page Sidebar navigation checked?
That will add a menu to the sidebar if a certain page has nested menu items.
Hope that helps :)
Thanks
TJJune 2, 2017 at 10:47 am in reply to: How to add a redirect Javascript code to the child theme #802927Hi,
Did you paste just the script in Google services or the whole function.
If pasting to Google services just use<script> document.addEventListener( ‘wpcf7mailsent’, function( event ) { location = ‘http://example.com/’; }, false ); </script>
That’s the only reason I can think as to why it isn’t working. The code should be right at the bottom before the </body> tag
Hope that helps
TJ
June 1, 2017 at 10:17 am in reply to: How to add a redirect Javascript code to the child theme #802450Morning
You could put the code in the google analytics section under Theme Options > Google Services.
I’ve used that section to put marketing automation tracking codes and google codes and they work fine.Or you could add a function to the functions.php
function add_custom_target(){ ?> <script> document.addEventListener( ‘wpcf7mailsent’, function( event ) { location = ‘http://example.com/’; }, false ); </script> <?php } add_action('wp_footer', 'add_custom_target');
Be very careful with the last option as any errors in functions.php could throw up a 500 internal error and you’ll need ftp or cPanel access to reverse the changes.
Try the first as that is a safe option :) Once done right click on any page of your site and click view page source. Search the source code for the script to see if it has worked.
Hope that helps
TJ
Due to the fact that elements use different tags there is no way of using one piece of code change all fonts by 2pt. *
Under general styling > fonts you can change the global size of the p tags
Under advanced styling you can change the size of various tags such as h1, h2, blockquote* strictly speaking this isn’t true. You can change the size of everything globally but it requires you to be using rem rather than px as your size value.
The base value for font size using rem is 16px.
Rem values are as fol;ows10px = 0.625rem
12px = 0.75rem
14px = 0.875rem
16px = 1rem (base)
18px = 1.125rem
20px = 1.25rem
24px = 1.5rem
30px = 1.875rem
32px = 2remBy setting a percentage against this you can change font sizes globally and quickly. see below…
html { font-size: 62.5%; } /* =10px */ body { font-size: 1.4rem; } /* =14px */ h1 { font-size: 2.4rem; } /* =24px */
changing the html or root value to 100% or 50% would change the rem value of everything.
This solution would only work if you were coding a site from scratch. I’ve added it here simple to show there is a way :)
Hope that helps
TJ
**EDIT**
you could set a media quirey to change the standard font size (the p tag size)
@media only screen and (max-width: 990px) { p{ font-size:10px; } }
- This reply was modified 7 years, 7 months ago by tjswarbs78.
Hi,
I taken the time to do a few screen shots of what both sites look like to an impartial and non-biased user. Just as if it was stumbling across the sites while browsing.
As we can see from the image below the font works fine. I even boxed them in red to make it easy for you to see. You also notice I took a snippet of the code being pulled though. I highlighted this in red too – you know to make things easy for you! The custom font is being used.
Now onto the site built in Enfold – which clearly is messing up. It couldn’t possibly be you. I mean maybe you didn’t clear your browser cache and some old files were being pulled. I don’t know. I can only go off what i see. With my own eyes.
You’ll notice from the image below that the font is indeed being used! Well knock me down with a feather. Huh it’s not the theme after all. I’ve boxed the font and code being pulled and highlighted in green. So it’s easy for you to see.
Your reasoning for it not working make no sense. If two different people can see the font working correctly maybe the issue is local to you?
TJ
- This reply was modified 7 years, 7 months ago by tjswarbs78.
Hi,
The .container.av-logo-container elements has the logo, main menu and mobile menu nested inside it. Hiding it hides everything it contains
You could try..@media only screen and (max-width: 990px) { div .logo { display:none;} }
That should hide the logo only on screens less than 990px wide.
Hope that helps
TJ
Hey,
I’d imagine the media queries are confusing each other.
Try the following…
h1{ font-size: 50px; } /*This will set the h1 size to 50px as a standard. So desktop, mobile and tablet. It will be over-ridden by the media queries below.*/ @media only screen and (max-width: 959px){ h1{ font-size: 40px; } } /*This will set the h1 size to 40px when the device width shrinks to less than or equal to 959px.*/ @media only screen and (max-width: 320px) { h1{ font-size: 30px; } } /*This will set the h1 size to 30px when the device width shrinks to less than or equal to 320px.*/
Hope that helps
TJ
- This reply was modified 7 years, 7 months ago by tjswarbs78.
Hi,
If you haven’t already, installing either firebug or we developer tools in chrome will allow you to play around with the css on a live page.
A simple right click and ‘Inspect’ will pull up all the css and html structure for an element.If you get stuck post a link to the page and I’ll see if i can help out with the css. Just a link no logins… I’m not a mod ;)
Hope that helps
TJ
- This reply was modified 7 years, 7 months ago by tjswarbs78.
Hi,
I don’t believe the text editor has an option for justify, it only has left, centre and right.
You could add some inline css to make text justified as below
<p style="text-align:justify;">I'm some text</p>
You would have to reproduce that bit of code on every block of text.You could add some code to the custom css to target a class as below
.justify-me{text-align:justify;}
You would then add that class to each text element.
More on text-align can be found here
Hope that helps
TJ
Morning are you using the Masonry under the content elements tab or the Masonry Gallery under media elements?
They show content in different ways.
Thanks
TJ
-
AuthorPosts