Forum Replies Created

Viewing 30 posts - 31 through 60 (of 64 total)
  • Author
    Posts
  • in reply to: custom post archive #1302730

    Hello,

    Couple problems. Firstly this is editing the blog page, i am trying to edit the archive page – postslider.php. The code you gave me above will add the brand taxonomy to the blog page but i have already done that with the single.php.

    Next problem is that the code above is displaying the Brand taxonomy as expected, but it looks like this:

    Brands: <span>Brand 2</span>

    Its adding the <span> tags as text not HTML

    This is similar to the problem i am having on postlisder.php, where the php is being rendered as text:
    <p>
    <!–?php the_terms( , ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ ); ?–>
    </p>

    the actual slug i am using are:
    ‘advertisements’ – post type
    ‘brands’ – taxonomy

    There are a whole lot of other taxonomies but if i can get one working then i can get the rest working.

    in reply to: custom post archive #1302107

    Hi Ismael, I have tried using all of the below without success:

    get_the_terms( $post->ID, ‘advertisements’ );
    get_the_terms( $post->ID, ‘brands’ );
    get_the_term_list( $post->ID, ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ );
    get_the_term_list( get_the_ID(), ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ );
    the_terms( get_the_ID(), ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ );
    the_terms( $post->ID, ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ );
    get_the_term_list( $the_id, ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ );

    I think i was using the last one when I got the weird result i mentioned earlier.
    Not sure what i did wrong? I have added more code below to give some context for where i added it.

    $output .= ‘</header>’;
    if( ( $show_meta && ! empty( $excerpt ) ) || in_array( $show_meta_data, array( ‘always’, ‘on_empty_content’ ) ) )
    {
    $meta = “<div class=’slide-meta’>”;
    if ( $commentCount != ‘0’ || comments_open( $the_id ) && $entry->post_type != ‘portfolio’ )
    {
    $link_add = $commentCount === ‘0’ ? ‘#respond’ : ‘#comments’;
    $text_add = $commentCount === ‘1’ ? __( ‘Comment’, ‘avia_framework’ ) : __( ‘Comments’, ‘avia_framework’ );

    $meta .= “<div class=’slide-meta-comments’>{$commentCount} {$text_add}</div><div class=’slide-meta-del’>/</div>”;
    }
    $markup = avia_markup_helper( array( ‘context’ => ‘entry_time’, ‘echo’ => false, ‘id’ => $the_id, ‘custom_markup’ => $custom_markup ) );
    $meta .= “<time class=’slide-meta-time updated’ $markup>” . get_the_time( get_option( ‘date_format’ ), $the_id ) . ‘</time>’;
    $meta .= ‘</div>’;

    if( strpos( $blogstyle, ‘elegant-blog’ ) === false )
    {
    $output .= $meta;
    $meta = ”;
    }
    }
    $markup = avia_markup_helper( array( ‘context’ => ‘entry_content’, ‘echo’ => false, ‘id’ => $the_id, ‘custom_markup’ => $custom_markup ) );
    $excerpt = apply_filters( ‘avf_post_slider_entry_excerpt’, $excerpt, $prepare_excerpt, $permalink, $entry );
    $output .= ! empty( $excerpt ) ? “<div class=’slide-entry-excerpt entry-content’ {$markup}>

    <p>
    <?php the_terms( $post->ID, ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ ); ?>
    </p>

    {$excerpt}</div>” : ”;
    $output .= ‘</div>’;
    $output .= ‘<footer class=”entry-footer”>’;

    in reply to: custom post archive #1301255

    hmm i think i will need to create a new taxonomy with only one option, assign it to all posts and hide it from the front end. Is it possible to make a taxonomy selected by default so all posts have it automatically?

    Also, i have tried editing postslider.php but i am having a really strange issue there. I have added the code below:
    <p><?php the_terms( $post->ID, ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ ); ?></p>

    Which works as expected on single.php, but on the front end it is showing like this:
    <p>
    <!–?php the_terms( , ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ ); ?–>
    </p>

    As if the opening tag for the PHP is being interpreted as a HTML comment?

    in reply to: Featured image being cropped #1301086

    Hi Ismael,

    This plugin hasn’t been updated in over 2 years. I don’t really want to rely on a plugin that is no longer supported. Does Enfold have a built in way to change featured image size for posts with sidebars? Or something i can add in the functions.php?

    thanks

    in reply to: custom post archive #1300862

    thanks i will look into the postslider.php file.

    I removed the avia block and started again. I managed to get everything showing, however now its showing pages to i.e. Contact Us, Privacy policy etc.

    I need to show my custom ‘advertisement’ post type only, and it isn’t one of the options. It is only displaying the taxonomies so i cant select all of them.

    So the way it is structured is:

    -Advertisement post type
    —taxonomy 1
    —taxonomy 2
    —taxonomy 3
    —taxonomy etc

    But the Blog post Element only has:
    —taxonomy 1
    —taxonomy 2
    —taxonomy 3
    —taxonomy etc

    If i select one of the taxonomies then its not showing all the posts, only the posts in that taxonomy.

    I have disabled post categories so there shouldn’t be an issue with one of the posts being uncategorised.

    in reply to: custom post archive #1300643

    Also, regarding my second question. I found that i can show the taxonomies using this code in the single.php template:

    <?php the_terms( $post->ID, ‘brands’, ‘Brand: ‘, ‘, ‘, ‘ ‘ ); ?>

    It seems to work on the past page but not on the home page or the test page you setup?

    in reply to: custom post archive #1300641

    Hi Ismael,

    I had a look at the page you made and compared it to the one i have. The difference is that you have chosen to display one of the taxonomies, which works normally. The problem occurs when i select category > uncategorised so that i can display all posts.

    i am trying to display all advertisements in one place so i can filter them using the taxonomies, but the way you have done will only show products of one taxonomy at a time.

    thanks

    in reply to: Stray Code in child theme #1215730

    Hey,

    I tried uninstalling a couple plugins, including a caching plugin. It hasn’t happened since their morning so that may been it.

    Thanks for your help I’ll let you know if I have more problems.

    in reply to: Stray Code in child theme #1215368

    I should also mention that i updated the Enfold theme recently

    in reply to: Stray Code in child theme #1215366

    Once again it looks like its fixed. All i did was switch to the parent theme and back to the child theme. Do you know what may have caused this? It has happened a few times now and will probably happen again.

    in reply to: Stray Code in child theme #1215365

    Hi,

    I have a much larger problem now..

    The whole website is barely working since you removed the tag. At the moment it looks like there is no css or structure, like everything is just bullet points.

    It started happening when you removed the open tag. For a while it looked like it fixed itself but its back now.

    Please help ASAP. We are losing a ton of business over this.

    in reply to: Stray Code in child theme #1215150

    Hello,

    It was having some teething problems but it seems to have sorted itself out now.

    Seems to be working fine.

    What was the problem code? i would like to know so i do’t repeat it.

    in reply to: Stray Code in child theme #1215140
    This reply has been marked as private.
    in reply to: Onclick event on HTML link dissapears on save #1175224

    Perfect!

    Thanks a bunch, much appreciated

    in reply to: Onclick event on HTML link dissapears on save #1174702

    Perfect that worked!

    I’m not that good with Javascript, how can i convert this to say the code below in the private area? Apparently is a SEO tracking code

    in reply to: Onclick event on HTML link dissapears on save #1173732

    see below

    in reply to: Onclick event on HTML link dissapears on save #1173730

    nope its still doing it…

    How do i attach HTML without it being read as HTML??

    in reply to: Onclick event on HTML link dissapears on save #1173729

    Hello,

    For some reason it turned the HTML into an actual link.

    i have reattached below.

    in reply to: Video Media Element not working #1138788

    Hello,

    Thanks heres the link

    in reply to: Image Overlay on Product Grid #1095525

    Hi,

    Nope i spend some time redoing it. If there is a solution i would still like to know however since its not the first time to happen.

    in reply to: Image Overlay on Product Grid #1094294

    Hello,

    Is there a CSS class I can just add to the images that will give it the overlay?

    Hey Thanks for your response.

    Yes unfortunately its from Google Adsense so i don’t really have any control over it. All i can do is select the ad width and height, but that just changes the iframe dimensions not the content of the ad. My choices are to either give the ad a margin and push it away from the edge of the page, or somehow stop the container padding from hiding the ad.

    in reply to: Adding shortcode to Progress bar php file #798640

    Hello,

    Thanks for the quick reply. Details are below.

    I also added an example page with a progress bar using the shortcode to get the percentage. However its not working and the progress bar is defaulting to 100%. I added the same shortcode just underneath it to show what the number should be.

    in reply to: woocommerce product price is really small #798602

    Apologies. login detail below.

    Hi,

    Okay i got that page working again. I just hope that it won’t keep happening. The only thing i can think of that may cause this is that i have given each column a css class and given them these attributes: However if they work initially then i don’t know why it would break during seemingly random edits.

    .product-custom-thumb {
    margin: 0px !important;
    width: 24%; }

    .product-list-price-col {
    width: 24% !important;
    left-padding: 0px;
    right-padding: 0px; }

    .product-list-half {
    max-width: 90% !important;
    margin-left: 20px !important;
    margin-right: 0px !important; }

    Hello,

    Thanks for your quick response. I have activated the debug mode.

    Hello,

    No the problem is definitely not fixed. The last Avis layout builder column has collapsed into the column next to it. Just like before. It’s supposed to look like the product above it.

    Hello,

    Sorry but it has happened again on a new page. This time the page is not using the blue icons. What could be causing this issue? i need to get this website finished soon but i have spent most of my time remaking pages! See private content for the page in question.

    i have already tried remaking the last column and dragging the contents in again but the moment i save it it breaks again.

    Thanks

    Yep i just rebuilt the whole page and its working fine. All good.

    Thanks for your help.

    I just used the add media button in the text area. I think i added some css to make them line up properly, but nothing weird that could have broken the whole column.

Viewing 30 posts - 31 through 60 (of 64 total)