Home>Support>Finding Functions

Finding Functions

By fionaom, 10 years ago. Last reply by fionaom, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi Guys,

Reading through the forum I can’t believe the support you offer. Amazing.

I just have a quick question on working with a child theme. I’m a total newbie here, and I can’t find the function vantage_content_nav. I want to customize the next and previous buttons for single blog posts. Oddly, the “previous” anchor tag is separate from the span containing the back arrow, but the “next” anchor tag CONTAINS the span with the forward arrow.

So if you could just let me know where that function lives, I’ll go change it.

Thanks in advance!

URL: http://negotiators.ie/blog/2015/06/question-what-is-my-dsa-allowance/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 20 days ago Magus
    Hi, I Work Here

    Hi Fionaom

    This is not being caused by any function, it is getting overruled by your custom CSS. To surround the entire text with the blue border please remove this entry from your CSS

    #nav-below div.nav-previous a {
        width: 10px !important;
    }
    

    and replace it with this

    #nav-below div.nav-next a span {
        width: 10px !important;
    }
    
    #nav-below div.nav-previous a span {
        width: 10px !important;
    }
    

    Let us know how you get on

    Magus

  2. 10 years, 20 days ago fionaom

    Hi Magus,

    Sorry. I’m not sure I got the question across very well. The anchor tag is containing the span in one case, and is not containing the span in another case. I can hack a fix in CSS, but I’d rather fix the way the page is built from the function first?

    Cheers,

  3. 10 years, 20 days ago Magus
    Hi, I Work Here

    Hi Fionaom

    The span is contained within the anchor tag for both elements. This is how your page is constructed.

    <nav class="site-navigation post-navigation" id="nav-below" role="navigation" abp="88">
    		<h1 class="assistive-text" abp="89">Post navigation</h1>	
    		<div class="single-nav-wrapper" abp="90">
    			<div class="nav-previous" abp="91">
                            <a href="http://negotiators.ie/blog/2015/06/new-company-legislation/" rel="prev" abp="92">
                            <span class="meta-nav" abp="93">←</span>
                             New Company Legislation
                            </a>
                           </div>
                          <div class="nav-next" abp="94">
                          <a href="http://negotiators.ie/blog/2015/06/this-is-a-test-of-mail-chimp/" rel="next" abp="95">
                          This is a test of Mail Chimp 
                           <span class="meta-nav" abp="96">→</span>
                           </a>
                           </div>
                   </div>
    </nav>
    

    The styling issues you are seeing are all due to CSS. How are you trying to style the buttons, just for the arrows or as the complete text.

    Magus

  4. 10 years, 20 days ago fionaom

    You are right. I got that totally wrong. The span is inside them both!

    I still don’t think I can get what I want without editing the function. I’m try to turn that span into a blue circle with a white arrow on it. That arrow is sitting over to one side

  5. 10 years, 20 days ago fionaom

    Figured it out. I can use text-align and line-height to move the arrow and that’ll do it!

    Thanks for your help

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More