Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #1084343

    Hi,

    I have this custom css bellow for a masonry gallery and i want to apply a different one to several different Masonry elements on other page, i tried to add a custom class for the masonry element but no success, what can i do?

    .av-masonry-entry .av-masonry-entry-title {
    position: absolute;
    bottom: 25px;
    text-align: left;
    font-size: 30px!important;
    padding: 10px;
    color: white!important;
    }

    .av-masonry-entry .av-masonry-entry-content {
    position: absolute;
    bottom: 7px;
    text-align: left;
    padding: 10px;
    font-size: 16px!important;
    color: #01d7a5!important;
    }

    Thanks!

    #1085260

    Hey Nerohm,

    The code you posted is global and affects all masonry.
    Try using this instead:

    #top .classname .av-inner-masonry-content .av-masonry-entry-title {
      position: absolute;
      bottom: 25px;
      text-align: left;
      font-size: 30px!important;
      padding: 10px;
      color: white!important;
    }
    
    #top .classname .av-inner-masonry-content .av-masonry-entry-content {
      position: absolute;
      bottom: 7px;
      text-align: left;
      padding: 10px;
      font-size: 16px!important;
      color: #01d7a5!important;
    }

    Just replace classname with the classname you set.

    Best regards,
    Nikko

    #1085494

    Thanks Nikko!

    It worked, now i would like to change the background color of the entry (and mouse over color to), since there will be NO featured image for the entry’s.

    Best regards,

    Nero

    #1085500

    Hi Nerohm,

    We’re glad that we could help :)
    Try adding this code, just replace the background color and color values:

    #top .teses_artigos .av-inner-masonry-content:hover {
        background-color: black;
    }
    
    #top .teses_artigos .av-inner-masonry-content:hover .av-masonry-entry-title, 
    #top .teses_artigos .av-inner-masonry-content:hover .av-masonry-entry-content {
        color: white !important;
    }

    Best regards,
    Nikko

    #1085571

    Very nice Nikko, thank you!

    One more thing related to another page, i have all my posts set to link format and i want them to open in a new tab, i tried to put this code in the functions.php of my child theme but it didin’t worked:

    function add_custom_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘.post_format-post-format-link a’).attr(‘target’,’_blank’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_target’);

    #1085840

    Hi Nerohm,

    It did not work because that class didn’t exist in the page you gave.
    Try adding an ID to your tabsection then replace:

    jQuery(‘.post_format-post-format-link a’).attr(‘target’,’_blank’);

    with:

    jQuery('#tab_section_id .slide-entry a').attr('target','_blank');

    just change tab_section_id with the id you assigned.

    Best regards,
    Nikko

    #1086079

    Thanks Nikko!

    One more thing, I am trying to modify the font size of this image caption https://imgur.com/bdjQSFW but no sucess, i think maybe some custom css is the issue, can you pls take a look?

    Best regards,

    Nerohm

    #1086131

    Hi Nerohm,

    Where can I find that image caption? I tried to check on the links you gave and the links in your main menu, I might have missed it.

    Best regards,
    Nikko

    #1086165

    Hi Nikko,

    Here is the link: http://18.231.24.173/wp-admin/post.php?post=2707&action=edit

    Is the home page, named Pagina Principal

    thanks!

    #1086750

    Hi Nerohm,

    I have added it a Custom Class: box, please add this css code just adjust the font size:

    #top .box .av-image-caption-overlay-center p {
        font-size: 30px;
    }

    Best regards,
    Nikko

    #1087029

    Perfect Nikko!

    The only thing that didin’t work so far is the script to open all my posts in another window/tab, they are all set to link format, I tried to set an ID (noticias) for that tabsection, but no sucess either. Hope you can have another workaround.

    Thanks!

    #1087061

    Hi Nerohm,

    Can you try to replace:

    add_action(‘wp_footer’, ‘add_custom_target’);

    with (the difference are the apostrophes):

    add_action('wp_footer', 'add_custom_target');

    Also in that page, I could not find an element with an id of noticias.

    Best regards,
    Nikko

    #1088877

    Thanks Nikko, i had to change all apostrophes and it worked!

    One more thing, the dates in the timeline are set for H2 and strong, i want to remove the strong tag, i want only to be H2, how can i do that?

    Best regards,

    Nero

    #1089070

    Hi Nero,

    Is it only for visual purposes? if yes, we can just change it’s font weight to normal, if not then you’ll need to modify it in timeline.php located in wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > timeline folder and find this code (line 1042-1045) just remove the strong tag:

    $date_wrapper = array(
        'start' => "<h2 class='av-milestone-date{$av_title_font_classes}' {$date_styling} id='milestone-{$title_sanitized}'><strong>",
        'end' => "</strong></h2>",
    );

    Best regards,
    Nikko

    #1089121

    Hi Nikko,

    Yes, its only for visual purposes, i tried to change the font weight with custom css but it didin’t worked, can you give me the correct css?

    thanks!

    #1089389

    Hi Nerohm,

    Try to use this css code:

    #top .av-milestone-date strong {
        font-weight: 400;
    }

    Best regards,
    Nikko

    #1092747

    Perfect Nikko !

    Now i have two more issues, my logo in the header seems to be loosing quality, what can i do about that? it gets blurry, with no definition after some time i upload the file.

    And the other, i am trying to apply a border radius to a easy slider on my home page, see the image with the element: https://imgur.com/w8gz8RH
    but no sucess, maybe some conflict with other custom css? can you pls take a look.

    Thanks for all the support!

    Best regards,

    Nerohm

    #1092858

    Hi Nerohm,

    The image you upload for the logo is too large and when large images gets shrinked it losses some of its quality.
    I suggest you modify it in an image editor like photoshop and resize it to 231 x 85px, and use this.
    As for the slider, try adding this css code:

    #top #av_section_5 ul.avia-slideshow-inner {
        border-radius: 10px;
    }

    just adjust the value.

    Best regards,
    Nikko

    #1092948

    Hi Nikko, thanks for the logo tip, worked perfectly !

    But the easy slider still not showing the border radius to the images.

    Best regards,

    Nerohm

    #1093413

    Hi Nikko,

    I just saw that the border-radius is not showing only in Safari for that easy slider, so i think maybe its ok.

    I have another question, see if you can help me, i need to create a landing page with a simple mailchimp form, and when the user fill the form and hit send he will be redirected to another page with a video, the purpouse of this is to show this video only for the people that register in the mailchimp newsletter.

    Best regards,

    Nerohm

    #1093676

    Hi Nikko, just saw that i have a default setup for redirecting to another page, so everything just fine for now!

    Thanks !

    #1093857

    Hi Nerohm,

    Glad to hear that :)
    Just let us know if you need further assistance.

    Best regards,
    Nikko

    #1093860

    Hi,

    Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Don’t forget to bookmark Enfold Documentation for future reference.

    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Change Caption Style and position for a specific Masonry’ is closed to new replies.