Shortcodes appearing at home page

Home Forums All Other Themes Shortcodes appearing at home page

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #33792
    MarkiaMarkia
    Member
    • Topics: 1
    • Replies: 1
    • Total: 2
    Member since: May 10, 2016

    Hello, why are the shortcodes showing as text under the sections area?

    I do not want them to appear in public.

    I use the Girlie Theme.

    At the sections area I just choose the pages for my portfolio and contact page where I want the pages to link to but…at these pages I have inserted the shortcodes that are visible at home page. Hope there is a fix around this

    #33793
    Raimondo ZorodduRaimondo Zoroddu
    Participant
    • Topics: 11
    • Replies: 12
    • Total: 23
    Member since: April 12, 2016

    Hello Markia, I’ve the same problem, you can have a look at THIS post.
    I will follow your post too, so the first solution will be right for both of us 😉

    Ciao
    Raimondo

    #33796
    MarkiaMarkia
    Member
    • Topics: 1
    • Replies: 1
    • Total: 2
    Member since: May 10, 2016

    thanks I also watch your post for relative answer

    #33849
    Sonnal S SinhaSonnal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6964
    • Total: 6974
    Member since: June 12, 2013

    For both of you kindly go to index.php and search excerpt and change it to content if this is difficult for you both we would like to get admin access to the site via sktthemes.net/contact

    This way it will show the shortcodes.

    Regards,
    Shri

    #33850
    Sonnal S SinhaSonnal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6964
    • Total: 6974
    Member since: June 12, 2013

    On another thought kindly set up normal pages and then you can redirect them to the ones with shortcodes.

    Or keep shortcodes in middle area and only have text in the top 30 words to have no shortcode displayed on homepage.

    Regards,
    Shri

    #33865
    Raimondo ZorodduRaimondo Zoroddu
    Participant
    • Topics: 11
    • Replies: 12
    • Total: 23
    Member since: April 12, 2016

    Hello Shri,
    id did as you’ve suggested and it just showed me up 3 dots “…”

    On your second instance suggestion, I actually don’t know how to redirect a page inside wordpress. Just looked HERE, but i don’t want to install and study another plugin…

    So this is my solution: PHP

    Went to index.php file (under the Theme directory) and edited like this:

    	  <?php $contenuto = wp_trim_words( get_the_content(), $complete['featured_excerpt'] );?>
              <p><?php echo str_replace("[su_row] [su_column size=\"1/2\"]",$cambia, $contenuto); ?></p>
    

    I’ve searched my shortcode and replaced with nothing, so it won’t show in homepage anymore…

    The only thing is: next time i will update the theme, I will loose my edit, do you know “something” to avoid loosing of php direct editing to the theme ?

    Hope my solution could even be usefull for Markia 🙂

    Best Regards
    Raimondo

    #33869
    Raimondo ZorodduRaimondo Zoroddu
    Participant
    • Topics: 11
    • Replies: 12
    • Total: 23
    Member since: April 12, 2016

    Yeah, child themes…

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Shortcodes appearing at home page’ is closed to new replies.